LinearInputFilter is a Component with a predefined linear transfer function.
More...
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.
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_const | The Component's time constant, which specifies how much of its previous value remains after each update step. |
debug | Set False, if you don't want to see debugging output, set True if you want to see debugging output. |
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_area | Area of the complete surrounding (of the MotionDetectorModel.Surroundings.surrounding.Surrounding object). |
sensor_receptive_field | Receptive field of the sensor, usually given in a list of min and max angles. |
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:
- CompoundPye/src/Components/linear_input_filter.py