Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- neuromatch
- time loop
- check if in refractory
- check if voltage above threshold
- if so neuron spike, reset voltage, activate refractory period
- dv = (-(v[it] - E_L) + Iinj[it] / g_L) * (dt / tau_m)
- update membrane potential v[it+1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement