norse.torch.functional.lif_adex_current_encoder

norse.torch.functional.lif_adex_current_encoder#

norse.torch.functional.lif_adex_current_encoder(input_current: Tensor, voltage: Tensor, adaptation: Tensor, p: LIFAdExParameters = (tensor(4), tensor(0.0200), tensor(0.5000), tensor(2.), tensor(200.), tensor(100.), tensor(0.), tensor(1.), tensor(0.), 'super', 100.0), dt: float = 0.001) Tuple[Tensor, Tensor, Tensor][source]#

Computes a single euler-integration step of an adaptive exponential LIF neuron-model adapted from http://www.scholarpedia.org/article/Adaptive_exponential_integrate-and-fire_model. More specifically it implements one integration step of the following ODE

v˙=1/τmem(vleakv+i+ΔTexp(vvthΔT)a)i˙=1/τsynia˙=1/τada(acurrent(Vvleak)a)

together with the jump condition

z=Θ(vvth)

and transition equations

v=(1z)v+zvreseti=i+iina=a+aspikezrec
Parameters:

input_current (torch.Tensor): the input current at the current time step voltage (torch.Tensor): current state of the LIFAdEx neuron adaptation (torch.Tensor): membrane adaptation parameter in nS p (LIFAdExParameters): parameters of a leaky integrate and fire neuron dt (float): Integration timestep to use