apply_adaptive_thresholds

apply_adaptive_thresholds(threshold: float | Tensor, adaptations: Tensor) Tensor[source]

Applies simple adaptation to voltage firing thresholds.

Parameters:
  • threshold (float | torch.Tensor) – equilibrium of the firing threshold, \(\Theta_\infty\), in \(\text{mV}\).

  • adaptations (torch.Tensor) – \(k\) threshold adaptations, \(\theta_k\), in \(\text{mV}\).

Returns:

adapted firing thresholds.

Return type:

torch.Tensor

Note

The first \(N - 1\) dimensions of adaptations must be broadcastable with threshold.

See also

For an example, visit Adaptive Threshold, Linear Spike-Dependent in the zoo.