jaxsnn.event.root
Modules
Analytically find the time of the next spike for a LIF neuron for the special case of $ au_mem = 2 * au_syn$. |
Functions
-
jaxsnn.event.root.
cr_newton_solver
(f, initial_guess, state, dt)
-
jaxsnn.event.root.
cr_ttfs_solver
(tau_mem, v_th, y0, initial_guess)
-
jaxsnn.event.root.
newton_solver
(f, initial_guess, state, dt) Newton’s method for root-finding.
-
jaxsnn.event.root.
ttfs_solver
(tau_mem: float, v_th: float, state: jaxsnn.event.types.LIFState, t_max: float) Find the next spike time for special case $ au_mem = 2 * au_syn$
- Args:
tau_mem float (float): Membrane time constant v_th float (float): Treshold Voltage state (LIFState): State of the neuron (voltage, current) t_max (float): maximum time which is to be searched
- Returns:
float: Time of next threshhold crossing or t_max if no crossing