PresynapticTrace

PresynapticTrace#

class braintrace.PresynapticTrace(init_value, leak)#

Leaky accumulator â λ·â + x_t used by OTTT and OTPE-Approx.

Parameters:
  • init_value (jax.Array) – Initial value; also dictates shape and dtype.

  • leak (float) – Decay factor λ in (0, 1). Pulled from the neuron’s membrane leak in SNN usage.

update(x)[source]#

Apply one accumulation step: â ← λ·â + x.