CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
CompoundPye.src.Components.linear_input_filter.LinearInputFilter Class Reference

LinearInputFilter is a Component with a predefined linear transfer function. More...

Inheritance diagram for CompoundPye.src.Components.linear_input_filter.LinearInputFilter:
CompoundPye.src.Components.component.Component

Public Member Functions

def __init__
 Initializes LinearInputFilter-object. More...
 
def set_norm_factor
 Sets the normalization factor of the LinearInputFilter, depending on the area that is covered by the sensor connected to the input filter. More...
 
- Public Member Functions inherited from CompoundPye.src.Components.component.Component
def __init__
 Initializes a Component-object. More...
 
def update
 Updates the Component's internal value and output based on the provided input. More...
 
def get_output
 Returns Component.output . More...
 
def add_connection
 Adds a connections to the Component's list of connections. More...
 

Public Attributes

 param
 
- Public Attributes inherited from CompoundPye.src.Components.component.Component
 value
 Current internal value. More...
 
 output
 Current output of the object, calculated using the object's transfer function Component.activation_func and its internal value Component.value as the function's input. More...
 
 activation_func
 Transfer function of the Component-object. More...
 
 param
 List of parameters for the object's transfer function Component.activation_func. More...
 
 time_const_output
 The Component's time constant, which specifies how much of its previous Component.value remains after each update step. More...
 
 label
 
 attributes
 assign attributes to the neuron, e.g. More...
 
 next_neighbour_single_time
 create only once per pairs of neighbours, True or False More...
 

Detailed Description

LinearInputFilter is a Component with a predefined linear transfer function.

One can use the function LinearInputFilter.set_norm_factor to normalize the Component's output based on a sensors' input.

Constructor & Destructor Documentation

def CompoundPye.src.Components.linear_input_filter.LinearInputFilter.__init__ (   self,
  time_const_input = 0.05,
  time_const_output = 0.05,
  debug = False 
)

Initializes LinearInputFilter-object.

Parameters
time_constThe Component's time constant, which specifies how much of its previous value remains after each update step.
debugSet False, if you don't want to see debugging output, set True if you want to see debugging output.

Member Function Documentation

def CompoundPye.src.Components.linear_input_filter.LinearInputFilter.set_norm_factor (   self,
  surrounding_area,
  sensor_receptive_field 
)

Sets the normalization factor of the LinearInputFilter, depending on the area that is covered by the sensor connected to the input filter.

Parameters
surrounding_areaArea of the complete surrounding (of the MotionDetectorModel.Surroundings.surrounding.Surrounding object).
sensor_receptive_fieldReceptive field of the sensor, usually given in a list of min and max angles.

Member Data Documentation

CompoundPye.src.Components.linear_input_filter.LinearInputFilter.param
Note
what happens if receptive field min> receptive field max?

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