step_rate_generator - provides a piecewise constant input rate
The rate can be altered in the following way:
/step_rate_generator Create /sc Set
sc << /amplitude_times [0.2 0.5] /amplitude_values [2.0 4.0] >> SetStatus
The amplitude of the rate will be 0.0 Hz in the time interval [0, 0.2),
2.0 Hz in the interval [0.2, 0.5) and 4.0 Hz from then on.
The rate_generator provides a piecewise constant rate input to the
connected rate unit(s). Please note that this input is handled in the same
way as input from any other rate unit, i.e. it is processed by the input
function of the receiving rate unit. The amplitude of the rate is changed
at the specified times. The unit of the rate is Hz.
The following parameters can be set in the status dictionary:
amplitude_times list of doubles - Times at which rate changes in ms
amplitude_values list of doubles - Amplitudes of rates in Hz
allow_offgrid_times bool - Default false
If false, times will be rounded to the nearest step if they are
less than tic/2 from the step, otherwise NEST reports an error.
If true, times are rounded to the nearest step if within tic/2
from the step, otherwise they are rounded up to the *end* of the
step.
Note:
Times of amplitude changes must be strictly increasing after conversion
to simulation time steps. The option allow_offgrid_times may be
useful, e.g., if you are using randomized times for rate changes
which typically would not fall onto simulation time steps.
DelayedRateConnectionEvent
Sandra Nestler, David Dahmen
/usr/src/packages/BUILD/models/step_rate_generator.h