SpikeRefractoryMixin¶
- class SpikeRefractoryMixin(refrac: Tensor, absrefrac: str)[source]¶
Bases:
RefractoryMixinMixin for neurons with refractory periods with spikes based off of them.
- Parameters:
refrac (torch.Tensor) – initial refractory periods, in \(\text{ms}\).
absrefrac (str) – attribute containing the absolute refractory period, in \(\text{ms}\).
- property spike: Tensor¶
Action potentials last generated.
\[\begin{split}f(t) = \begin{cases} 1, &t_\text{refrac}(t) = \text{ARP} \\ 0, &\text{otherwise} \end{cases}\end{split}\]- Where:
\(f_(t)\) are the postsynaptic spikes.
\(t_\text{refrac}(t)\) are the remaining refractory periods, in \(\text{ms}\).
\(\text{ARP}\) is the absolute refractory period, in \(\text{ms}\).
- Returns:
- if the corresponding neuron generated an action potential
during the prior step.
- Return type: