Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Feldman Cousins code #813
In the calculation of average upper limit, the code now skip bins with low probability. This makes this code more robust and the user does not have to find a good range of x-values. The value for low probability is a new optional option of the fc_find_average_upper_limit. Add "try and except" for calculation of average upper limit and give user useful instructions on how to fix the problem.
Fixed an error in the documentation and removed the now unnecessary selection of x-bins.
I've left two minor inline comments.
Otherwise, this is ready to go.
(I can't comment on the method / stats aspect, there I just trust it makes sense, and I'm OK to put it in without adding an extra test for this.)