Skip to content
Snippets Groups Projects
Commit 90eb3722 authored by Chad Hanna's avatar Chad Hanna
Browse files

fixed potential divide by zero

parent 65ff719e
No related branches found
No related tags found
No related merge requests found
......@@ -79,5 +79,5 @@ def max_stat_thresh(coeffs, fap, samp_tol=100.0):
#
def ss_coeffs(S, amp=5.5):
return 1.0 / (1.0 + len(S) * S**-2 * amp**-2 )
return S**2 / (S**2 + len(S) / amp**2 )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment