Commit 875a994c authored by Surabhi Sachdev's avatar Surabhi Sachdev Committed by Chad Hanna
Browse files

normalize the background only using values at likelihood ratios greater than the threshold

parent ec48068b
......@@ -767,6 +767,7 @@ WHERE
# compute survival probability model from best fit
survival_probability = mk_survival_probability(rate_eff, m)
self.noise_lr_lnpdf.array[:self.noise_lr_lnpdf.bins[0][mode]] = 0.
# apply to background counts and signal counts
self.noise_lr_lnpdf.array *= survival_probability
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