model.modules.current_encoder.lif_current_encoder_step

model.modules.current_encoder.lif_current_encoder_step#

lif_current_encoder_step(input_current: Tensor, state: LIFState, p: LIFParameters = (tensor(200.), tensor(100.), tensor(0.), tensor(1.), tensor(0.), 'super', tensor(100.)), dt: float = 0.001) Tuple[Tensor, Tensor][source]#

Performs a single integration step for the constant current LIF encoder

Integrates the input current, applies the threshold, emits a spike if the threshold is crossed, and resets the membrane potential accordingly.