pyclustering  0.10.1
pyclustring is a Python, C++ data mining library.
pyclustering.nnet.pcnn.pcnn_dynamic Class Reference

Represents output dynamic of PCNN (pulse-coupled neural network). More...

Public Member Functions

def output (self)
 (list) Returns oscillato outputs during simulation.
 
def time (self)
 (list) Returns sampling times when dynamic is measured during simulation.
 
def __init__ (self, dynamic, ccore=None)
 Constructor of PCNN dynamic. More...
 
def __del__ (self)
 Default destructor of PCNN dynamic.
 
def __len__ (self)
 (uint) Returns number of simulation steps that are stored in dynamic.
 
def allocate_sync_ensembles (self)
 Allocate clusters in line with ensembles of synchronous oscillators where each synchronous ensemble corresponds to only one cluster. More...
 
def allocate_spike_ensembles (self)
 Analyses output dynamic of network and allocates spikes on each iteration as a list of indexes of oscillators. More...
 
def allocate_time_signal (self)
 Analyses output dynamic and calculates time signal (signal vector information) of network output. More...
 

Detailed Description

Represents output dynamic of PCNN (pulse-coupled neural network).

Definition at line 76 of file pcnn.py.

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.nnet.pcnn.pcnn_dynamic.__init__ (   self,
  dynamic,
  ccore = None 
)

Constructor of PCNN dynamic.

Parameters
[in]dynamic(list): Dynamic of oscillators on each step of simulation. If ccore pointer is specified than it can be ignored.
[in]ccore(ctypes.pointer): Pointer to CCORE pcnn_dynamic instance in memory.

Definition at line 106 of file pcnn.py.

Member Function Documentation

◆ allocate_spike_ensembles()

def pyclustering.nnet.pcnn.pcnn_dynamic.allocate_spike_ensembles (   self)

Analyses output dynamic of network and allocates spikes on each iteration as a list of indexes of oscillators.

Each allocated spike ensemble represents list of indexes of oscillators whose output is active.

Returns
(list) Spike ensembles of oscillators.

Definition at line 173 of file pcnn.py.

◆ allocate_sync_ensembles()

def pyclustering.nnet.pcnn.pcnn_dynamic.allocate_sync_ensembles (   self)

Allocate clusters in line with ensembles of synchronous oscillators where each synchronous ensemble corresponds to only one cluster.

Returns
(list) Grours (lists) of indexes of synchronous oscillators. For example, [ [index_osc1, index_osc3], [index_osc2], [index_osc4, index_osc5] ].

Definition at line 141 of file pcnn.py.

Referenced by pyclustering.cluster.syncnet.syncnet_analyser.allocate_clusters(), and pyclustering.gcolor.sync.syncgcolor_analyser.allocate_color_clusters().

◆ allocate_time_signal()

def pyclustering.nnet.pcnn.pcnn_dynamic.allocate_time_signal (   self)

Analyses output dynamic and calculates time signal (signal vector information) of network output.

Returns
(list) Time signal of network output.

Definition at line 201 of file pcnn.py.


The documentation for this class was generated from the following file: