CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
Basic Circuit class that handles a network of components and sensors and their updating at each time step. More...
Public Member Functions | |
def | __init__ |
Initializes a Circuit-object. More... | |
def | create_weight_matrices |
Creates the weight matrices. More... | |
def | update |
Updates the circuit's components (in self.components) and its sensors (in self.sensors). More... | |
Basic Circuit class that handles a network of components and sensors and their updating at each time step.
def CompoundPye.src.Circuits.circuit.Circuit.__init__ | ( | self, | |
list_of_components, | |||
list_of_sensors, | |||
debug = False |
|||
) |
Initializes a Circuit-object.
Creates the weight matrices that represent the connections between components (and sensors).
list_of_components | Requires a list of components with predefined connections. |
list_of_sensors | Requires a list of sensors with predefined connections to one or more component. |
def CompoundPye.src.Circuits.circuit.Circuit.create_weight_matrices | ( | self | ) |
Creates the weight matrices.
Creates the components_weight_matrix from connections between components. Creates the sensors_weight_matrix from conncections from sensors to components.
def CompoundPye.src.Circuits.circuit.Circuit.update | ( | self, | |
dt, | |||
intensities | |||
) |
Updates the circuit's components (in self.components) and its sensors (in self.sensors).
dt | Time step for the update. |
intensities | Intensities of stimuli (provides input for the detectors). |