Local excitatory global inhibitory oscillatory network (LEGION) that uses relaxation oscillator based on Van der Pol model. More...
Public Member Functions | |
def | __init__ (self, num_osc, parameters=None, type_conn=conn_type.ALL_TO_ALL, type_conn_represent=conn_represent.MATRIX, ccore=True) |
Constructor of oscillatory network LEGION (local excitatory global inhibitory oscillatory network). More... | |
def | __del__ (self) |
Default destructor of LEGION. | |
def | __len__ (self) |
(uint) Returns size of LEGION. | |
def | simulate (self, steps, time, stimulus, solution=solve_type.RK4, collect_dynamic=True) |
Performs static simulation of LEGION oscillatory network. More... | |
Public Member Functions inherited from pyclustering.nnet.network | |
def | height (self) |
Height of the network grid (that is defined by amout of oscillators in each column), this value is zero in case of non-grid structure. More... | |
def | width (self) |
Width of the network grid, this value is zero in case of non-grid structure. More... | |
def | structure (self) |
Type of network structure that is used for connecting oscillators. | |
def | __init__ (self, num_osc, type_conn=conn_type.ALL_TO_ALL, conn_repr=conn_represent.MATRIX, height=None, width=None) |
Constructor of the network. More... | |
def | __len__ (self) |
Returns size of the network that is defined by amount of oscillators. | |
def | has_connection (self, i, j) |
Returns True if there is connection between i and j oscillators and False - if connection doesn't exist. More... | |
def | set_connection (self, i, j) |
Couples two specified oscillators in the network with dynamic connections. More... | |
def | get_neighbors (self, index) |
Finds neighbors of the oscillator with specified index. More... | |
Local excitatory global inhibitory oscillatory network (LEGION) that uses relaxation oscillator based on Van der Pol model.
The model uses global inhibitor to de-synchronize synchronous ensembles of oscillators.
CCORE option can be used to use the pyclustering core - C/C++ shared library for processing that significantly increases performance.
Example:
def pyclustering.nnet.legion.legion_network.__init__ | ( | self, | |
num_osc, | |||
parameters = None , |
|||
type_conn = conn_type.ALL_TO_ALL , |
|||
type_conn_represent = conn_represent.MATRIX , |
|||
ccore = True |
|||
) |
Constructor of oscillatory network LEGION (local excitatory global inhibitory oscillatory network).
[in] | num_osc | (uint): Number of oscillators in the network. |
[in] | parameters | (legion_parameters): Parameters of the network that are defined by structure 'legion_parameters'. |
[in] | type_conn | (conn_type): Type of connection between oscillators in the network. |
[in] | type_conn_represent | (conn_represent): Internal representation of connection in the network: matrix or list. |
[in] | ccore | (bool): If True then all interaction with object will be performed via CCORE library (C++ implementation of pyclustering). |
def pyclustering.nnet.legion.legion_network.simulate | ( | self, | |
steps, | |||
time, | |||
stimulus, | |||
solution = solve_type.RK4 , |
|||
collect_dynamic = True |
|||
) |
Performs static simulation of LEGION oscillatory network.
[in] | steps | (uint): Number steps of simulations during simulation. |
[in] | time | (double): Time of simulation. |
[in] | stimulus | (list): Stimulus for oscillators, number of stimulus should be equal to number of oscillators, example of stimulus for 5 oscillators [0, 0, 1, 1, 0], value of stimulus is defined by parameter 'I'. |
[in] | solution | (solve_type): Method that is used for differential equation. |
[in] | collect_dynamic | (bool): If True - returns whole dynamic of oscillatory network, otherwise returns only last values of dynamics. |