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

far.py: make extinction threshold explicit in event count so that it doesn't bounce around

parent 040b2bf0
No related branches found
No related tags found
No related merge requests found
......@@ -718,9 +718,9 @@ WHERE
noise_counts = self.noise_lr_lnpdf.array.copy()
# get the zerolag counts.
# we model the tail of the distribution - top 1% - where
# clustering only effects the result at a 1% level.
onepercent = zl_counts.cumsum().searchsorted(zl_counts.sum() * 0.99)
# we model the tail of the distribution - top 0.1 - 1% - where
# clustering only effects the result at a < 1% level.
onepercent = zl_counts.cumsum().searchsorted(zl_counts.sum() - 1000)
# normalize the counts
noise_counts /= noise_counts.sum()
......
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