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

fixed trailing whitespace

parent 001aa9c8
No related branches found
No related tags found
No related merge requests found
......@@ -67,16 +67,16 @@ def cdf_weighted_chisq_Pinv(A, noncent, dof, var, P, lim, accuracy):
def max_stat_thresh(coeffs, fap, samp_tol=100.0):
num = int(samp_tol/ fap)
out = numpy.zeros(num)
out = numpy.zeros(num)
for c in coeffs: out += c*scipy.randn(num)**2
out.sort()
p = numpy.cumsum(out)/numpy.sum(out)
return out[len(p[p>fap])]
#
# Function to compute the optimal quadratic statistic coefficients given
# Function to compute the optimal quadratic statistic coefficients given
# singular values S and a desired signal size amp
#
#
def ss_coeffs(S, amp=5.5):
return 1.0 / (1.0 + len(S) * S**-2 * 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