CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
OneDimSine is a Stimulus with a predefined sine-shape of given length. More...
Public Member Functions | |
def | __init__ |
Initializes a OneDimSine-object. More... | |
![]() | |
def | __init__ |
Initializes a Stimulus object. More... | |
def | update |
Updates the Stimulus, that is, the Stimulus moves according to its velocity. More... | |
OneDimSine is a Stimulus with a predefined sine-shape of given length.
The user can specify the length, starting point, velocity and some sine specific parameters when creating an object of this class. Spatial values need to be specified in pixels of the Surrouding's intensities-array (see MotionDetectorModel.Surroundings.one_dim.OneDim.intensities).
def CompoundPye.src.Surroundings.Stimuli.one_dim_sine.OneDimSine.__init__ | ( | self, | |
length, | |||
starting_point, | |||
velocity, | |||
n_periods = 1. , |
|||
amplitude = .5 , |
|||
phase_shift = 0.0 , |
|||
offset = .5 |
|||
) |
Initializes a OneDimSine-object.
length | Length of the sine-wave in pixels. |
starting_point | Index of the left-most pixel of the stimulus. |
velocity | Stimulus velocity in pixel/time unit. |
n_periods | Number of periods in the length of the stimulus. |
amplitude | Amplitude of the sine-wave. |
phase_shift | Initial phase shift (if you do not want the sine-wave to start at sin(0)). |
offset | Offset that is added to the sine function. |