IF_curr_exp
models.Neurons.IF_curr_exp(self,
=-65.0,
v_rest=1.0,
cm=20.0,
tau_m=0.0,
tau_refrac=5.0,
tau_syn_E=5.0,
tau_syn_I=-50.0,
v_thresh=-65.0,
v_reset=0.0,
i_offset )
Leaky integrate-and-fire model with fixed threshold and decaying-exponential post-synaptic current.
(Separate synaptic currents for excitatory and inhibitory synapses).
Parameters:
- v_rest = -65.0 : Resting membrane potential (mV)
- cm = 1.0 : Capacity of the membrane (nF)
- tau_m = 20.0 : Membrane time constant (ms)
- tau_refrac = 0.0 : Duration of refractory period (ms)
- tau_syn_E = 5.0 : Decay time of excitatory synaptic current (ms)
- tau_syn_I = 5.0 : Decay time of inhibitory synaptic current (ms)
- i_offset = 0.0 : Offset current (nA)
- v_reset = -65.0 : Reset potential after a spike (mV)
- v_thresh = -50.0 : Spike threshold (mV)
Variables:
v : membrane potential in mV (init=-65.0):
cm * dv/dt = cm/tau_m*(v_rest -v) + g_exc - g_inh + i_offset
g_exc : excitatory current (init = 0.0):
tau_syn_E * dg_exc/dt = - g_exc
g_inh : inhibitory current (init = 0.0):
tau_syn_I * dg_inh/dt = - g_inh
Spike emission:
v > v_thresh
Reset:
v = v_reset
The ODEs are solved using the exponential Euler method.
Equivalent code:
= Neuron(
IF_curr_exp = """
parameters v_rest = -65.0
cm = 1.0
tau_m = 20.0
tau_syn_E = 5.0
tau_syn_I = 5.0
v_thresh = -50.0
v_reset = -65.0
i_offset = 0.0
""",
= """
equations cm * dv/dt = cm/tau_m*(v_rest -v) + g_exc - g_inh + i_offset : exponential, init=-65.0
tau_syn_E * dg_exc/dt = - g_exc : exponential
tau_syn_I * dg_inh/dt = - g_inh : exponential
""",
= "v > v_thresh",
spike = "v = v_reset",
reset = 0.0
refractory )
Parameters
Name | Type | Description | Default |
---|---|---|---|
v_rest | float | Resting membrane potential (mV) | -65.0 |
cm | float | Capacity of the membrane (nF) | 1.0 |
tau_m | float | Membrane time constant (ms) | 20.0 |
tau_refrac | float | Duration of refractory period (ms) | 0.0 |
tau_syn_E | float | Decay time of excitatory synaptic current (ms) | 5.0 |
tau_syn_I | float | Decay time of inhibitory synaptic current (ms) | 5.0 |
i_offset | float | Offset current (nA) | 0.0 |
v_reset | float | Reset potential after a spike (mV) | -65.0 |
v_thresh | float | Spike threshold (mV) | -50.0 |