vbi 0.1.3__cp310-cp310-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vbi/__init__.py +37 -0
- vbi/_version.py +17 -0
- vbi/dataset/__init__.py +0 -0
- vbi/dataset/connectivity_84/centers.txt +84 -0
- vbi/dataset/connectivity_84/centres.txt +84 -0
- vbi/dataset/connectivity_84/cortical.txt +84 -0
- vbi/dataset/connectivity_84/tract_lengths.txt +84 -0
- vbi/dataset/connectivity_84/weights.txt +84 -0
- vbi/dataset/connectivity_88/Aud_88.txt +88 -0
- vbi/dataset/connectivity_88/Bold.npz +0 -0
- vbi/dataset/connectivity_88/Labels.txt +17 -0
- vbi/dataset/connectivity_88/Region_labels.txt +88 -0
- vbi/dataset/connectivity_88/tract_lengths.txt +88 -0
- vbi/dataset/connectivity_88/weights.txt +88 -0
- vbi/feature_extraction/__init__.py +1 -0
- vbi/feature_extraction/calc_features.py +293 -0
- vbi/feature_extraction/features.json +535 -0
- vbi/feature_extraction/features.py +2124 -0
- vbi/feature_extraction/features_settings.py +374 -0
- vbi/feature_extraction/features_utils.py +1357 -0
- vbi/feature_extraction/infodynamics.jar +0 -0
- vbi/feature_extraction/utility.py +507 -0
- vbi/inference.py +98 -0
- vbi/models/__init__.py +0 -0
- vbi/models/cpp/__init__.py +0 -0
- vbi/models/cpp/_src/__init__.py +0 -0
- vbi/models/cpp/_src/__pycache__/mpr_sde.cpython-310.pyc +0 -0
- vbi/models/cpp/_src/_do.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_jr_sdde.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_jr_sde.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_km_sde.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_mpr_sde.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_vep.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/_wc_ode.cpython-310-x86_64-linux-gnu.so +0 -0
- vbi/models/cpp/_src/bold.hpp +303 -0
- vbi/models/cpp/_src/do.hpp +167 -0
- vbi/models/cpp/_src/do.i +17 -0
- vbi/models/cpp/_src/do.py +467 -0
- vbi/models/cpp/_src/do_wrap.cxx +12811 -0
- vbi/models/cpp/_src/jr_sdde.hpp +352 -0
- vbi/models/cpp/_src/jr_sdde.i +19 -0
- vbi/models/cpp/_src/jr_sdde.py +688 -0
- vbi/models/cpp/_src/jr_sdde_wrap.cxx +18718 -0
- vbi/models/cpp/_src/jr_sde.hpp +264 -0
- vbi/models/cpp/_src/jr_sde.i +17 -0
- vbi/models/cpp/_src/jr_sde.py +470 -0
- vbi/models/cpp/_src/jr_sde_wrap.cxx +13406 -0
- vbi/models/cpp/_src/km_sde.hpp +158 -0
- vbi/models/cpp/_src/km_sde.i +19 -0
- vbi/models/cpp/_src/km_sde.py +671 -0
- vbi/models/cpp/_src/km_sde_wrap.cxx +17367 -0
- vbi/models/cpp/_src/makefile +52 -0
- vbi/models/cpp/_src/mpr_sde.hpp +327 -0
- vbi/models/cpp/_src/mpr_sde.i +19 -0
- vbi/models/cpp/_src/mpr_sde.py +711 -0
- vbi/models/cpp/_src/mpr_sde_wrap.cxx +18618 -0
- vbi/models/cpp/_src/utility.hpp +307 -0
- vbi/models/cpp/_src/vep.hpp +171 -0
- vbi/models/cpp/_src/vep.i +16 -0
- vbi/models/cpp/_src/vep.py +464 -0
- vbi/models/cpp/_src/vep_wrap.cxx +12968 -0
- vbi/models/cpp/_src/wc_ode.hpp +294 -0
- vbi/models/cpp/_src/wc_ode.i +19 -0
- vbi/models/cpp/_src/wc_ode.py +686 -0
- vbi/models/cpp/_src/wc_ode_wrap.cxx +24263 -0
- vbi/models/cpp/damp_oscillator.py +143 -0
- vbi/models/cpp/jansen_rit.py +543 -0
- vbi/models/cpp/km.py +187 -0
- vbi/models/cpp/mpr.py +289 -0
- vbi/models/cpp/vep.py +150 -0
- vbi/models/cpp/wc.py +216 -0
- vbi/models/cupy/__init__.py +0 -0
- vbi/models/cupy/bold.py +111 -0
- vbi/models/cupy/ghb.py +284 -0
- vbi/models/cupy/jansen_rit.py +473 -0
- vbi/models/cupy/km.py +224 -0
- vbi/models/cupy/mpr.py +475 -0
- vbi/models/cupy/mpr_modified_bold.py +12 -0
- vbi/models/cupy/utils.py +184 -0
- vbi/models/numba/__init__.py +0 -0
- vbi/models/numba/_ww_EI.py +444 -0
- vbi/models/numba/damp_oscillator.py +162 -0
- vbi/models/numba/ghb.py +208 -0
- vbi/models/numba/mpr.py +383 -0
- vbi/models/pytorch/__init__.py +0 -0
- vbi/models/pytorch/data/default_parameters.npz +0 -0
- vbi/models/pytorch/data/input/ROI_sim.mat +0 -0
- vbi/models/pytorch/data/input/fc_test.csv +68 -0
- vbi/models/pytorch/data/input/fc_train.csv +68 -0
- vbi/models/pytorch/data/input/fc_vali.csv +68 -0
- vbi/models/pytorch/data/input/fcd_test.mat +0 -0
- vbi/models/pytorch/data/input/fcd_test_high_window.mat +0 -0
- vbi/models/pytorch/data/input/fcd_test_low_window.mat +0 -0
- vbi/models/pytorch/data/input/fcd_train.mat +0 -0
- vbi/models/pytorch/data/input/fcd_vali.mat +0 -0
- vbi/models/pytorch/data/input/myelin.csv +68 -0
- vbi/models/pytorch/data/input/rsfc_gradient.csv +68 -0
- vbi/models/pytorch/data/input/run_label_testset.mat +0 -0
- vbi/models/pytorch/data/input/sc_test.csv +68 -0
- vbi/models/pytorch/data/input/sc_train.csv +68 -0
- vbi/models/pytorch/data/input/sc_vali.csv +68 -0
- vbi/models/pytorch/data/obs_kong0.npz +0 -0
- vbi/models/pytorch/ww_sde_kong.py +570 -0
- vbi/models/tvbk/__init__.py +9 -0
- vbi/models/tvbk/tvbk_wrapper.py +166 -0
- vbi/models/tvbk/utils.py +72 -0
- vbi/papers/__init__.py +0 -0
- vbi/papers/pavlides_pcb_2015/pavlides.py +211 -0
- vbi/tests/__init__.py +0 -0
- vbi/tests/_test_mpr_nb.py +36 -0
- vbi/tests/test_features.py +355 -0
- vbi/tests/test_ghb_cupy.py +90 -0
- vbi/tests/test_mpr_cupy.py +49 -0
- vbi/tests/test_mpr_numba.py +84 -0
- vbi/tests/test_suite.py +19 -0
- vbi/utils.py +402 -0
- vbi-0.1.3.dist-info/METADATA +166 -0
- vbi-0.1.3.dist-info/RECORD +121 -0
- vbi-0.1.3.dist-info/WHEEL +5 -0
- vbi-0.1.3.dist-info/licenses/LICENSE +201 -0
- vbi-0.1.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,686 @@
|
|
1
|
+
# This file was automatically generated by SWIG (https://www.swig.org).
|
2
|
+
# Version 4.3.1
|
3
|
+
#
|
4
|
+
# Do not make changes to this file unless you know what you are doing - modify
|
5
|
+
# the SWIG interface file instead.
|
6
|
+
|
7
|
+
from sys import version_info as _swig_python_version_info
|
8
|
+
# Import the low-level C/C++ module
|
9
|
+
if __package__ or "." in __name__:
|
10
|
+
from . import _wc_ode
|
11
|
+
else:
|
12
|
+
import _wc_ode
|
13
|
+
|
14
|
+
try:
|
15
|
+
import builtins as __builtin__
|
16
|
+
except ImportError:
|
17
|
+
import __builtin__
|
18
|
+
|
19
|
+
def _swig_repr(self):
|
20
|
+
try:
|
21
|
+
strthis = "proxy of " + self.this.__repr__()
|
22
|
+
except __builtin__.Exception:
|
23
|
+
strthis = ""
|
24
|
+
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
25
|
+
|
26
|
+
|
27
|
+
def _swig_setattr_nondynamic_instance_variable(set):
|
28
|
+
def set_instance_attr(self, name, value):
|
29
|
+
if name == "this":
|
30
|
+
set(self, name, value)
|
31
|
+
elif name == "thisown":
|
32
|
+
self.this.own(value)
|
33
|
+
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
|
34
|
+
set(self, name, value)
|
35
|
+
else:
|
36
|
+
raise AttributeError("You cannot add instance attributes to %s" % self)
|
37
|
+
return set_instance_attr
|
38
|
+
|
39
|
+
|
40
|
+
def _swig_setattr_nondynamic_class_variable(set):
|
41
|
+
def set_class_attr(cls, name, value):
|
42
|
+
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
|
43
|
+
set(cls, name, value)
|
44
|
+
else:
|
45
|
+
raise AttributeError("You cannot add class attributes to %s" % cls)
|
46
|
+
return set_class_attr
|
47
|
+
|
48
|
+
|
49
|
+
def _swig_add_metaclass(metaclass):
|
50
|
+
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
|
51
|
+
def wrapper(cls):
|
52
|
+
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
|
53
|
+
return wrapper
|
54
|
+
|
55
|
+
|
56
|
+
class _SwigNonDynamicMeta(type):
|
57
|
+
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
|
58
|
+
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
|
59
|
+
|
60
|
+
|
61
|
+
class SwigPyIterator(object):
|
62
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
63
|
+
|
64
|
+
def __init__(self, *args, **kwargs):
|
65
|
+
raise AttributeError("No constructor defined - class is abstract")
|
66
|
+
__repr__ = _swig_repr
|
67
|
+
__swig_destroy__ = _wc_ode.delete_SwigPyIterator
|
68
|
+
|
69
|
+
def value(self):
|
70
|
+
return _wc_ode.SwigPyIterator_value(self)
|
71
|
+
|
72
|
+
def incr(self, n=1):
|
73
|
+
return _wc_ode.SwigPyIterator_incr(self, n)
|
74
|
+
|
75
|
+
def decr(self, n=1):
|
76
|
+
return _wc_ode.SwigPyIterator_decr(self, n)
|
77
|
+
|
78
|
+
def distance(self, x):
|
79
|
+
return _wc_ode.SwigPyIterator_distance(self, x)
|
80
|
+
|
81
|
+
def equal(self, x):
|
82
|
+
return _wc_ode.SwigPyIterator_equal(self, x)
|
83
|
+
|
84
|
+
def copy(self):
|
85
|
+
return _wc_ode.SwigPyIterator_copy(self)
|
86
|
+
|
87
|
+
def next(self):
|
88
|
+
return _wc_ode.SwigPyIterator_next(self)
|
89
|
+
|
90
|
+
def __next__(self):
|
91
|
+
return _wc_ode.SwigPyIterator___next__(self)
|
92
|
+
|
93
|
+
def previous(self):
|
94
|
+
return _wc_ode.SwigPyIterator_previous(self)
|
95
|
+
|
96
|
+
def advance(self, n):
|
97
|
+
return _wc_ode.SwigPyIterator_advance(self, n)
|
98
|
+
|
99
|
+
def __eq__(self, x):
|
100
|
+
return _wc_ode.SwigPyIterator___eq__(self, x)
|
101
|
+
|
102
|
+
def __ne__(self, x):
|
103
|
+
return _wc_ode.SwigPyIterator___ne__(self, x)
|
104
|
+
|
105
|
+
def __iadd__(self, n):
|
106
|
+
return _wc_ode.SwigPyIterator___iadd__(self, n)
|
107
|
+
|
108
|
+
def __isub__(self, n):
|
109
|
+
return _wc_ode.SwigPyIterator___isub__(self, n)
|
110
|
+
|
111
|
+
def __add__(self, n):
|
112
|
+
return _wc_ode.SwigPyIterator___add__(self, n)
|
113
|
+
|
114
|
+
def __sub__(self, *args):
|
115
|
+
return _wc_ode.SwigPyIterator___sub__(self, *args)
|
116
|
+
def __iter__(self):
|
117
|
+
return self
|
118
|
+
|
119
|
+
# Register SwigPyIterator in _wc_ode:
|
120
|
+
_wc_ode.SwigPyIterator_swigregister(SwigPyIterator)
|
121
|
+
class IntVector(object):
|
122
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
123
|
+
__repr__ = _swig_repr
|
124
|
+
|
125
|
+
def iterator(self):
|
126
|
+
return _wc_ode.IntVector_iterator(self)
|
127
|
+
def __iter__(self):
|
128
|
+
return self.iterator()
|
129
|
+
|
130
|
+
def __nonzero__(self):
|
131
|
+
return _wc_ode.IntVector___nonzero__(self)
|
132
|
+
|
133
|
+
def __bool__(self):
|
134
|
+
return _wc_ode.IntVector___bool__(self)
|
135
|
+
|
136
|
+
def __len__(self):
|
137
|
+
return _wc_ode.IntVector___len__(self)
|
138
|
+
|
139
|
+
def __getslice__(self, i, j):
|
140
|
+
return _wc_ode.IntVector___getslice__(self, i, j)
|
141
|
+
|
142
|
+
def __setslice__(self, *args):
|
143
|
+
return _wc_ode.IntVector___setslice__(self, *args)
|
144
|
+
|
145
|
+
def __delslice__(self, i, j):
|
146
|
+
return _wc_ode.IntVector___delslice__(self, i, j)
|
147
|
+
|
148
|
+
def __delitem__(self, *args):
|
149
|
+
return _wc_ode.IntVector___delitem__(self, *args)
|
150
|
+
|
151
|
+
def __getitem__(self, *args):
|
152
|
+
return _wc_ode.IntVector___getitem__(self, *args)
|
153
|
+
|
154
|
+
def __setitem__(self, *args):
|
155
|
+
return _wc_ode.IntVector___setitem__(self, *args)
|
156
|
+
|
157
|
+
def pop(self):
|
158
|
+
return _wc_ode.IntVector_pop(self)
|
159
|
+
|
160
|
+
def append(self, x):
|
161
|
+
return _wc_ode.IntVector_append(self, x)
|
162
|
+
|
163
|
+
def empty(self):
|
164
|
+
return _wc_ode.IntVector_empty(self)
|
165
|
+
|
166
|
+
def size(self):
|
167
|
+
return _wc_ode.IntVector_size(self)
|
168
|
+
|
169
|
+
def swap(self, v):
|
170
|
+
return _wc_ode.IntVector_swap(self, v)
|
171
|
+
|
172
|
+
def begin(self):
|
173
|
+
return _wc_ode.IntVector_begin(self)
|
174
|
+
|
175
|
+
def end(self):
|
176
|
+
return _wc_ode.IntVector_end(self)
|
177
|
+
|
178
|
+
def rbegin(self):
|
179
|
+
return _wc_ode.IntVector_rbegin(self)
|
180
|
+
|
181
|
+
def rend(self):
|
182
|
+
return _wc_ode.IntVector_rend(self)
|
183
|
+
|
184
|
+
def clear(self):
|
185
|
+
return _wc_ode.IntVector_clear(self)
|
186
|
+
|
187
|
+
def get_allocator(self):
|
188
|
+
return _wc_ode.IntVector_get_allocator(self)
|
189
|
+
|
190
|
+
def pop_back(self):
|
191
|
+
return _wc_ode.IntVector_pop_back(self)
|
192
|
+
|
193
|
+
def erase(self, *args):
|
194
|
+
return _wc_ode.IntVector_erase(self, *args)
|
195
|
+
|
196
|
+
def __init__(self, *args):
|
197
|
+
_wc_ode.IntVector_swiginit(self, _wc_ode.new_IntVector(*args))
|
198
|
+
|
199
|
+
def push_back(self, x):
|
200
|
+
return _wc_ode.IntVector_push_back(self, x)
|
201
|
+
|
202
|
+
def front(self):
|
203
|
+
return _wc_ode.IntVector_front(self)
|
204
|
+
|
205
|
+
def back(self):
|
206
|
+
return _wc_ode.IntVector_back(self)
|
207
|
+
|
208
|
+
def assign(self, n, x):
|
209
|
+
return _wc_ode.IntVector_assign(self, n, x)
|
210
|
+
|
211
|
+
def resize(self, *args):
|
212
|
+
return _wc_ode.IntVector_resize(self, *args)
|
213
|
+
|
214
|
+
def insert(self, *args):
|
215
|
+
return _wc_ode.IntVector_insert(self, *args)
|
216
|
+
|
217
|
+
def reserve(self, n):
|
218
|
+
return _wc_ode.IntVector_reserve(self, n)
|
219
|
+
|
220
|
+
def capacity(self):
|
221
|
+
return _wc_ode.IntVector_capacity(self)
|
222
|
+
__swig_destroy__ = _wc_ode.delete_IntVector
|
223
|
+
|
224
|
+
# Register IntVector in _wc_ode:
|
225
|
+
_wc_ode.IntVector_swigregister(IntVector)
|
226
|
+
class DoubleVector(object):
|
227
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
228
|
+
__repr__ = _swig_repr
|
229
|
+
|
230
|
+
def iterator(self):
|
231
|
+
return _wc_ode.DoubleVector_iterator(self)
|
232
|
+
def __iter__(self):
|
233
|
+
return self.iterator()
|
234
|
+
|
235
|
+
def __nonzero__(self):
|
236
|
+
return _wc_ode.DoubleVector___nonzero__(self)
|
237
|
+
|
238
|
+
def __bool__(self):
|
239
|
+
return _wc_ode.DoubleVector___bool__(self)
|
240
|
+
|
241
|
+
def __len__(self):
|
242
|
+
return _wc_ode.DoubleVector___len__(self)
|
243
|
+
|
244
|
+
def __getslice__(self, i, j):
|
245
|
+
return _wc_ode.DoubleVector___getslice__(self, i, j)
|
246
|
+
|
247
|
+
def __setslice__(self, *args):
|
248
|
+
return _wc_ode.DoubleVector___setslice__(self, *args)
|
249
|
+
|
250
|
+
def __delslice__(self, i, j):
|
251
|
+
return _wc_ode.DoubleVector___delslice__(self, i, j)
|
252
|
+
|
253
|
+
def __delitem__(self, *args):
|
254
|
+
return _wc_ode.DoubleVector___delitem__(self, *args)
|
255
|
+
|
256
|
+
def __getitem__(self, *args):
|
257
|
+
return _wc_ode.DoubleVector___getitem__(self, *args)
|
258
|
+
|
259
|
+
def __setitem__(self, *args):
|
260
|
+
return _wc_ode.DoubleVector___setitem__(self, *args)
|
261
|
+
|
262
|
+
def pop(self):
|
263
|
+
return _wc_ode.DoubleVector_pop(self)
|
264
|
+
|
265
|
+
def append(self, x):
|
266
|
+
return _wc_ode.DoubleVector_append(self, x)
|
267
|
+
|
268
|
+
def empty(self):
|
269
|
+
return _wc_ode.DoubleVector_empty(self)
|
270
|
+
|
271
|
+
def size(self):
|
272
|
+
return _wc_ode.DoubleVector_size(self)
|
273
|
+
|
274
|
+
def swap(self, v):
|
275
|
+
return _wc_ode.DoubleVector_swap(self, v)
|
276
|
+
|
277
|
+
def begin(self):
|
278
|
+
return _wc_ode.DoubleVector_begin(self)
|
279
|
+
|
280
|
+
def end(self):
|
281
|
+
return _wc_ode.DoubleVector_end(self)
|
282
|
+
|
283
|
+
def rbegin(self):
|
284
|
+
return _wc_ode.DoubleVector_rbegin(self)
|
285
|
+
|
286
|
+
def rend(self):
|
287
|
+
return _wc_ode.DoubleVector_rend(self)
|
288
|
+
|
289
|
+
def clear(self):
|
290
|
+
return _wc_ode.DoubleVector_clear(self)
|
291
|
+
|
292
|
+
def get_allocator(self):
|
293
|
+
return _wc_ode.DoubleVector_get_allocator(self)
|
294
|
+
|
295
|
+
def pop_back(self):
|
296
|
+
return _wc_ode.DoubleVector_pop_back(self)
|
297
|
+
|
298
|
+
def erase(self, *args):
|
299
|
+
return _wc_ode.DoubleVector_erase(self, *args)
|
300
|
+
|
301
|
+
def __init__(self, *args):
|
302
|
+
_wc_ode.DoubleVector_swiginit(self, _wc_ode.new_DoubleVector(*args))
|
303
|
+
|
304
|
+
def push_back(self, x):
|
305
|
+
return _wc_ode.DoubleVector_push_back(self, x)
|
306
|
+
|
307
|
+
def front(self):
|
308
|
+
return _wc_ode.DoubleVector_front(self)
|
309
|
+
|
310
|
+
def back(self):
|
311
|
+
return _wc_ode.DoubleVector_back(self)
|
312
|
+
|
313
|
+
def assign(self, n, x):
|
314
|
+
return _wc_ode.DoubleVector_assign(self, n, x)
|
315
|
+
|
316
|
+
def resize(self, *args):
|
317
|
+
return _wc_ode.DoubleVector_resize(self, *args)
|
318
|
+
|
319
|
+
def insert(self, *args):
|
320
|
+
return _wc_ode.DoubleVector_insert(self, *args)
|
321
|
+
|
322
|
+
def reserve(self, n):
|
323
|
+
return _wc_ode.DoubleVector_reserve(self, n)
|
324
|
+
|
325
|
+
def capacity(self):
|
326
|
+
return _wc_ode.DoubleVector_capacity(self)
|
327
|
+
__swig_destroy__ = _wc_ode.delete_DoubleVector
|
328
|
+
|
329
|
+
# Register DoubleVector in _wc_ode:
|
330
|
+
_wc_ode.DoubleVector_swigregister(DoubleVector)
|
331
|
+
class DoubleVector2(object):
|
332
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
333
|
+
__repr__ = _swig_repr
|
334
|
+
|
335
|
+
def iterator(self):
|
336
|
+
return _wc_ode.DoubleVector2_iterator(self)
|
337
|
+
def __iter__(self):
|
338
|
+
return self.iterator()
|
339
|
+
|
340
|
+
def __nonzero__(self):
|
341
|
+
return _wc_ode.DoubleVector2___nonzero__(self)
|
342
|
+
|
343
|
+
def __bool__(self):
|
344
|
+
return _wc_ode.DoubleVector2___bool__(self)
|
345
|
+
|
346
|
+
def __len__(self):
|
347
|
+
return _wc_ode.DoubleVector2___len__(self)
|
348
|
+
|
349
|
+
def __getslice__(self, i, j):
|
350
|
+
return _wc_ode.DoubleVector2___getslice__(self, i, j)
|
351
|
+
|
352
|
+
def __setslice__(self, *args):
|
353
|
+
return _wc_ode.DoubleVector2___setslice__(self, *args)
|
354
|
+
|
355
|
+
def __delslice__(self, i, j):
|
356
|
+
return _wc_ode.DoubleVector2___delslice__(self, i, j)
|
357
|
+
|
358
|
+
def __delitem__(self, *args):
|
359
|
+
return _wc_ode.DoubleVector2___delitem__(self, *args)
|
360
|
+
|
361
|
+
def __getitem__(self, *args):
|
362
|
+
return _wc_ode.DoubleVector2___getitem__(self, *args)
|
363
|
+
|
364
|
+
def __setitem__(self, *args):
|
365
|
+
return _wc_ode.DoubleVector2___setitem__(self, *args)
|
366
|
+
|
367
|
+
def pop(self):
|
368
|
+
return _wc_ode.DoubleVector2_pop(self)
|
369
|
+
|
370
|
+
def append(self, x):
|
371
|
+
return _wc_ode.DoubleVector2_append(self, x)
|
372
|
+
|
373
|
+
def empty(self):
|
374
|
+
return _wc_ode.DoubleVector2_empty(self)
|
375
|
+
|
376
|
+
def size(self):
|
377
|
+
return _wc_ode.DoubleVector2_size(self)
|
378
|
+
|
379
|
+
def swap(self, v):
|
380
|
+
return _wc_ode.DoubleVector2_swap(self, v)
|
381
|
+
|
382
|
+
def begin(self):
|
383
|
+
return _wc_ode.DoubleVector2_begin(self)
|
384
|
+
|
385
|
+
def end(self):
|
386
|
+
return _wc_ode.DoubleVector2_end(self)
|
387
|
+
|
388
|
+
def rbegin(self):
|
389
|
+
return _wc_ode.DoubleVector2_rbegin(self)
|
390
|
+
|
391
|
+
def rend(self):
|
392
|
+
return _wc_ode.DoubleVector2_rend(self)
|
393
|
+
|
394
|
+
def clear(self):
|
395
|
+
return _wc_ode.DoubleVector2_clear(self)
|
396
|
+
|
397
|
+
def get_allocator(self):
|
398
|
+
return _wc_ode.DoubleVector2_get_allocator(self)
|
399
|
+
|
400
|
+
def pop_back(self):
|
401
|
+
return _wc_ode.DoubleVector2_pop_back(self)
|
402
|
+
|
403
|
+
def erase(self, *args):
|
404
|
+
return _wc_ode.DoubleVector2_erase(self, *args)
|
405
|
+
|
406
|
+
def __init__(self, *args):
|
407
|
+
_wc_ode.DoubleVector2_swiginit(self, _wc_ode.new_DoubleVector2(*args))
|
408
|
+
|
409
|
+
def push_back(self, x):
|
410
|
+
return _wc_ode.DoubleVector2_push_back(self, x)
|
411
|
+
|
412
|
+
def front(self):
|
413
|
+
return _wc_ode.DoubleVector2_front(self)
|
414
|
+
|
415
|
+
def back(self):
|
416
|
+
return _wc_ode.DoubleVector2_back(self)
|
417
|
+
|
418
|
+
def assign(self, n, x):
|
419
|
+
return _wc_ode.DoubleVector2_assign(self, n, x)
|
420
|
+
|
421
|
+
def resize(self, *args):
|
422
|
+
return _wc_ode.DoubleVector2_resize(self, *args)
|
423
|
+
|
424
|
+
def insert(self, *args):
|
425
|
+
return _wc_ode.DoubleVector2_insert(self, *args)
|
426
|
+
|
427
|
+
def reserve(self, n):
|
428
|
+
return _wc_ode.DoubleVector2_reserve(self, n)
|
429
|
+
|
430
|
+
def capacity(self):
|
431
|
+
return _wc_ode.DoubleVector2_capacity(self)
|
432
|
+
__swig_destroy__ = _wc_ode.delete_DoubleVector2
|
433
|
+
|
434
|
+
# Register DoubleVector2 in _wc_ode:
|
435
|
+
_wc_ode.DoubleVector2_swigregister(DoubleVector2)
|
436
|
+
class SingleVector(object):
|
437
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
438
|
+
__repr__ = _swig_repr
|
439
|
+
|
440
|
+
def iterator(self):
|
441
|
+
return _wc_ode.SingleVector_iterator(self)
|
442
|
+
def __iter__(self):
|
443
|
+
return self.iterator()
|
444
|
+
|
445
|
+
def __nonzero__(self):
|
446
|
+
return _wc_ode.SingleVector___nonzero__(self)
|
447
|
+
|
448
|
+
def __bool__(self):
|
449
|
+
return _wc_ode.SingleVector___bool__(self)
|
450
|
+
|
451
|
+
def __len__(self):
|
452
|
+
return _wc_ode.SingleVector___len__(self)
|
453
|
+
|
454
|
+
def __getslice__(self, i, j):
|
455
|
+
return _wc_ode.SingleVector___getslice__(self, i, j)
|
456
|
+
|
457
|
+
def __setslice__(self, *args):
|
458
|
+
return _wc_ode.SingleVector___setslice__(self, *args)
|
459
|
+
|
460
|
+
def __delslice__(self, i, j):
|
461
|
+
return _wc_ode.SingleVector___delslice__(self, i, j)
|
462
|
+
|
463
|
+
def __delitem__(self, *args):
|
464
|
+
return _wc_ode.SingleVector___delitem__(self, *args)
|
465
|
+
|
466
|
+
def __getitem__(self, *args):
|
467
|
+
return _wc_ode.SingleVector___getitem__(self, *args)
|
468
|
+
|
469
|
+
def __setitem__(self, *args):
|
470
|
+
return _wc_ode.SingleVector___setitem__(self, *args)
|
471
|
+
|
472
|
+
def pop(self):
|
473
|
+
return _wc_ode.SingleVector_pop(self)
|
474
|
+
|
475
|
+
def append(self, x):
|
476
|
+
return _wc_ode.SingleVector_append(self, x)
|
477
|
+
|
478
|
+
def empty(self):
|
479
|
+
return _wc_ode.SingleVector_empty(self)
|
480
|
+
|
481
|
+
def size(self):
|
482
|
+
return _wc_ode.SingleVector_size(self)
|
483
|
+
|
484
|
+
def swap(self, v):
|
485
|
+
return _wc_ode.SingleVector_swap(self, v)
|
486
|
+
|
487
|
+
def begin(self):
|
488
|
+
return _wc_ode.SingleVector_begin(self)
|
489
|
+
|
490
|
+
def end(self):
|
491
|
+
return _wc_ode.SingleVector_end(self)
|
492
|
+
|
493
|
+
def rbegin(self):
|
494
|
+
return _wc_ode.SingleVector_rbegin(self)
|
495
|
+
|
496
|
+
def rend(self):
|
497
|
+
return _wc_ode.SingleVector_rend(self)
|
498
|
+
|
499
|
+
def clear(self):
|
500
|
+
return _wc_ode.SingleVector_clear(self)
|
501
|
+
|
502
|
+
def get_allocator(self):
|
503
|
+
return _wc_ode.SingleVector_get_allocator(self)
|
504
|
+
|
505
|
+
def pop_back(self):
|
506
|
+
return _wc_ode.SingleVector_pop_back(self)
|
507
|
+
|
508
|
+
def erase(self, *args):
|
509
|
+
return _wc_ode.SingleVector_erase(self, *args)
|
510
|
+
|
511
|
+
def __init__(self, *args):
|
512
|
+
_wc_ode.SingleVector_swiginit(self, _wc_ode.new_SingleVector(*args))
|
513
|
+
|
514
|
+
def push_back(self, x):
|
515
|
+
return _wc_ode.SingleVector_push_back(self, x)
|
516
|
+
|
517
|
+
def front(self):
|
518
|
+
return _wc_ode.SingleVector_front(self)
|
519
|
+
|
520
|
+
def back(self):
|
521
|
+
return _wc_ode.SingleVector_back(self)
|
522
|
+
|
523
|
+
def assign(self, n, x):
|
524
|
+
return _wc_ode.SingleVector_assign(self, n, x)
|
525
|
+
|
526
|
+
def resize(self, *args):
|
527
|
+
return _wc_ode.SingleVector_resize(self, *args)
|
528
|
+
|
529
|
+
def insert(self, *args):
|
530
|
+
return _wc_ode.SingleVector_insert(self, *args)
|
531
|
+
|
532
|
+
def reserve(self, n):
|
533
|
+
return _wc_ode.SingleVector_reserve(self, n)
|
534
|
+
|
535
|
+
def capacity(self):
|
536
|
+
return _wc_ode.SingleVector_capacity(self)
|
537
|
+
__swig_destroy__ = _wc_ode.delete_SingleVector
|
538
|
+
|
539
|
+
# Register SingleVector in _wc_ode:
|
540
|
+
_wc_ode.SingleVector_swigregister(SingleVector)
|
541
|
+
class SingleVector2(object):
|
542
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
543
|
+
__repr__ = _swig_repr
|
544
|
+
|
545
|
+
def iterator(self):
|
546
|
+
return _wc_ode.SingleVector2_iterator(self)
|
547
|
+
def __iter__(self):
|
548
|
+
return self.iterator()
|
549
|
+
|
550
|
+
def __nonzero__(self):
|
551
|
+
return _wc_ode.SingleVector2___nonzero__(self)
|
552
|
+
|
553
|
+
def __bool__(self):
|
554
|
+
return _wc_ode.SingleVector2___bool__(self)
|
555
|
+
|
556
|
+
def __len__(self):
|
557
|
+
return _wc_ode.SingleVector2___len__(self)
|
558
|
+
|
559
|
+
def __getslice__(self, i, j):
|
560
|
+
return _wc_ode.SingleVector2___getslice__(self, i, j)
|
561
|
+
|
562
|
+
def __setslice__(self, *args):
|
563
|
+
return _wc_ode.SingleVector2___setslice__(self, *args)
|
564
|
+
|
565
|
+
def __delslice__(self, i, j):
|
566
|
+
return _wc_ode.SingleVector2___delslice__(self, i, j)
|
567
|
+
|
568
|
+
def __delitem__(self, *args):
|
569
|
+
return _wc_ode.SingleVector2___delitem__(self, *args)
|
570
|
+
|
571
|
+
def __getitem__(self, *args):
|
572
|
+
return _wc_ode.SingleVector2___getitem__(self, *args)
|
573
|
+
|
574
|
+
def __setitem__(self, *args):
|
575
|
+
return _wc_ode.SingleVector2___setitem__(self, *args)
|
576
|
+
|
577
|
+
def pop(self):
|
578
|
+
return _wc_ode.SingleVector2_pop(self)
|
579
|
+
|
580
|
+
def append(self, x):
|
581
|
+
return _wc_ode.SingleVector2_append(self, x)
|
582
|
+
|
583
|
+
def empty(self):
|
584
|
+
return _wc_ode.SingleVector2_empty(self)
|
585
|
+
|
586
|
+
def size(self):
|
587
|
+
return _wc_ode.SingleVector2_size(self)
|
588
|
+
|
589
|
+
def swap(self, v):
|
590
|
+
return _wc_ode.SingleVector2_swap(self, v)
|
591
|
+
|
592
|
+
def begin(self):
|
593
|
+
return _wc_ode.SingleVector2_begin(self)
|
594
|
+
|
595
|
+
def end(self):
|
596
|
+
return _wc_ode.SingleVector2_end(self)
|
597
|
+
|
598
|
+
def rbegin(self):
|
599
|
+
return _wc_ode.SingleVector2_rbegin(self)
|
600
|
+
|
601
|
+
def rend(self):
|
602
|
+
return _wc_ode.SingleVector2_rend(self)
|
603
|
+
|
604
|
+
def clear(self):
|
605
|
+
return _wc_ode.SingleVector2_clear(self)
|
606
|
+
|
607
|
+
def get_allocator(self):
|
608
|
+
return _wc_ode.SingleVector2_get_allocator(self)
|
609
|
+
|
610
|
+
def pop_back(self):
|
611
|
+
return _wc_ode.SingleVector2_pop_back(self)
|
612
|
+
|
613
|
+
def erase(self, *args):
|
614
|
+
return _wc_ode.SingleVector2_erase(self, *args)
|
615
|
+
|
616
|
+
def __init__(self, *args):
|
617
|
+
_wc_ode.SingleVector2_swiginit(self, _wc_ode.new_SingleVector2(*args))
|
618
|
+
|
619
|
+
def push_back(self, x):
|
620
|
+
return _wc_ode.SingleVector2_push_back(self, x)
|
621
|
+
|
622
|
+
def front(self):
|
623
|
+
return _wc_ode.SingleVector2_front(self)
|
624
|
+
|
625
|
+
def back(self):
|
626
|
+
return _wc_ode.SingleVector2_back(self)
|
627
|
+
|
628
|
+
def assign(self, n, x):
|
629
|
+
return _wc_ode.SingleVector2_assign(self, n, x)
|
630
|
+
|
631
|
+
def resize(self, *args):
|
632
|
+
return _wc_ode.SingleVector2_resize(self, *args)
|
633
|
+
|
634
|
+
def insert(self, *args):
|
635
|
+
return _wc_ode.SingleVector2_insert(self, *args)
|
636
|
+
|
637
|
+
def reserve(self, n):
|
638
|
+
return _wc_ode.SingleVector2_reserve(self, n)
|
639
|
+
|
640
|
+
def capacity(self):
|
641
|
+
return _wc_ode.SingleVector2_capacity(self)
|
642
|
+
__swig_destroy__ = _wc_ode.delete_SingleVector2
|
643
|
+
|
644
|
+
# Register SingleVector2 in _wc_ode:
|
645
|
+
_wc_ode.SingleVector2_swigregister(SingleVector2)
|
646
|
+
class WC_ode(object):
|
647
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
648
|
+
__repr__ = _swig_repr
|
649
|
+
|
650
|
+
def __init__(self, N, dt, P, Q, x0, weights, t_end=300.0, t_cut=0.0, c_ee=16.0, c_ei=12.0, c_ie=15.0, c_ii=3.0, tau_e=8.0, tau_i=8.0, a_e=1.3, a_i=2.0, b_e=4.0, b_i=3.7, c_e=1.0, c_i=1.0, theta_i=0.0, theta_e=0.0, r_e=1.0, r_i=1.0, k_e=0.994, k_i=0.999, alpha_e=1.0, alpha_i=1.0, g_e=0.0, g_i=0.0, fix_seed=0):
|
651
|
+
_wc_ode.WC_ode_swiginit(self, _wc_ode.new_WC_ode(N, dt, P, Q, x0, weights, t_end, t_cut, c_ee, c_ei, c_ie, c_ii, tau_e, tau_i, a_e, a_i, b_e, b_i, c_e, c_i, theta_i, theta_e, r_e, r_i, k_e, k_i, alpha_e, alpha_i, g_e, g_i, fix_seed))
|
652
|
+
|
653
|
+
def sigmoid(self, x, a, b, c):
|
654
|
+
return _wc_ode.WC_ode_sigmoid(self, x, a, b, c)
|
655
|
+
|
656
|
+
def rhs(self, y, dydt, dt):
|
657
|
+
return _wc_ode.WC_ode_rhs(self, y, dydt, dt)
|
658
|
+
|
659
|
+
def euler_step(self, y, dt):
|
660
|
+
return _wc_ode.WC_ode_euler_step(self, y, dt)
|
661
|
+
|
662
|
+
def eulerIntegrate(self):
|
663
|
+
return _wc_ode.WC_ode_eulerIntegrate(self)
|
664
|
+
|
665
|
+
def heun_step(self, y, dt):
|
666
|
+
return _wc_ode.WC_ode_heun_step(self, y, dt)
|
667
|
+
|
668
|
+
def heunIntegrate(self):
|
669
|
+
return _wc_ode.WC_ode_heunIntegrate(self)
|
670
|
+
|
671
|
+
def rk4_step(self, y, dt):
|
672
|
+
return _wc_ode.WC_ode_rk4_step(self, y, dt)
|
673
|
+
|
674
|
+
def rk4Integrate(self):
|
675
|
+
return _wc_ode.WC_ode_rk4Integrate(self)
|
676
|
+
|
677
|
+
def get_states(self):
|
678
|
+
return _wc_ode.WC_ode_get_states(self)
|
679
|
+
|
680
|
+
def get_times(self):
|
681
|
+
return _wc_ode.WC_ode_get_times(self)
|
682
|
+
__swig_destroy__ = _wc_ode.delete_WC_ode
|
683
|
+
|
684
|
+
# Register WC_ode in _wc_ode:
|
685
|
+
_wc_ode.WC_ode_swigregister(WC_ode)
|
686
|
+
|