Skip to content
Snippets Groups Projects
Commit f82b13bf authored by jarsi's avatar jarsi
Browse files

Simplify comparison

parent d97b0992
No related branches found
No related tags found
1 merge request!13Remove outdated comments
......@@ -85,7 +85,7 @@ def nu_0(tau_m, tau_r, V_th, V_r, mu, sigma):
sigma : float
Variance of the input current to the neurons in mV
"""
if mu <= V_th + (0.95 * abs(V_th) - abs(V_th)):
if mu <= V_th - 0.05 * abs(V_th):
return siegert1(tau_m, tau_r, V_th, V_r, mu, sigma)
else:
return siegert2(tau_m, tau_r, V_th, V_r, mu, sigma)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment