Performs analysis of output dynamic of the hysteresis oscillatory network to extract information about clusters or color allocation. More...
Public Member Functions | |
def | __init__ (self, amplitudes, time) |
Constructor of the analyser. More... | |
def | allocate_clusters (self, tolerance=0.1, threshold_steps=10) |
Returns list of clusters in line with state of ocillators (phases). More... | |
def | allocate_map_coloring (self, tolerance, threshold_steps=10) |
Returns list of color indexes that are assigned to each object from input data space accordingly. More... | |
Public Member Functions inherited from pyclustering.nnet.hysteresis.hysteresis_dynamic | |
def | output (self) |
(list) Returns outputs of oscillator during simulation. | |
def | time (self) |
(list) Returns sampling times when dynamic is measured during simulation. | |
def | __init__ (self, amplitudes, time) |
Constructor of hysteresis neural network dynamic. More... | |
def | __len__ (self) |
(uint) Returns number of simulation steps that are stored in dynamic. | |
def | allocate_sync_ensembles (self, tolerance=0.1, threshold_steps=1) |
Allocate clusters in line with ensembles of synchronous oscillators where each synchronous ensemble corresponds to only one cluster. More... | |
Performs analysis of output dynamic of the hysteresis oscillatory network to extract information about clusters or color allocation.
Definition at line 31 of file hysteresis.py.
def pyclustering.gcolor.hysteresis.hysteresis_analyser.__init__ | ( | self, | |
amplitudes, | |||
time | |||
) |
Constructor of the analyser.
[in] | amplitudes | (list): Output dynamic of the hysteresis oscillatory network, where one iteration consists of all amplitudes of oscillators. |
[in] | time | (list): Simulation time (timestamps of simulation steps) when amplitudes are stored. |
Definition at line 37 of file hysteresis.py.
def pyclustering.gcolor.hysteresis.hysteresis_analyser.allocate_clusters | ( | self, | |
tolerance = 0.1 , |
|||
threshold_steps = 10 |
|||
) |
Returns list of clusters in line with state of ocillators (phases).
[in] | tolerance | (double): Maximum error for allocation of synchronous ensemble oscillators. |
[in] | threshold_steps | (uint): Number of steps from the end of simulation that should be analysed for ensemble allocation. If amount of simulation steps has been less than threshold steps than amount of steps will be reduced to amount of simulation steps. |
Definition at line 48 of file hysteresis.py.
Referenced by pyclustering.gcolor.hysteresis.hysteresis_analyser.allocate_map_coloring().
def pyclustering.gcolor.hysteresis.hysteresis_analyser.allocate_map_coloring | ( | self, | |
tolerance, | |||
threshold_steps = 10 |
|||
) |
Returns list of color indexes that are assigned to each object from input data space accordingly.
[in] | tolerance | (double): Tolerance level that define maximal difference between outputs of oscillators in one synchronous ensemble. |
[in] | threshold_steps | (uint): Number of steps from the end of simulation that should be analysed for ensemble allocation. If amount of simulation steps has been less than threshold steps than amount of steps will be reduced to amount of simulation steps. |
Definition at line 67 of file hysteresis.py.