CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
CompoundPye.src.Circuits.circuit.Circuit Class Reference

Basic Circuit class that handles a network of components and sensors and their updating at each time step. More...

Inheritance diagram for CompoundPye.src.Circuits.circuit.Circuit:
CompoundPye.src.Circuits.circuit_array.CircuitSensorArray

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...
 

Detailed Description

Basic Circuit class that handles a network of components and sensors and their updating at each time step.

Constructor & Destructor Documentation

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).

Parameters
list_of_componentsRequires a list of components with predefined connections.
list_of_sensorsRequires a list of sensors with predefined connections to one or more component.

Member Function Documentation

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).

Parameters
dtTime step for the update.
intensitiesIntensities of stimuli (provides input for the detectors).

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