RefractoryStepMixin

class RefractoryStepMixin(steps: int, step_time: float, refrac: float | None)[source]

Bases: StepMixin

Mixin for encoders with a refractory period and a notion of global step.

Parameters:
  • steps (int) – number of steps over which to generate a spike train.

  • step_time (float) – length of a simulation time step, in \(ms\).

  • refrac (float) – refractory period, in \(\text{ms}\).

property dt: float

Length of the simulation time step, in milliseconds.

Parameters:

value (float) – new simulation time step length.

Returns:

present simulation time step length.

Return type:

float

property refrac: float

Length of the refractory period, in milliseconds.

Parameters:

value (float | None) – new refractory period length, pins to the step time if None.

Returns:

present refractory period length.

Return type:

float