Commit 186f4750 authored by Chad Hanna's avatar Chad Hanna

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

parent 040b2bf0
......@@ -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()
......
Markdown is supported
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