Skip to content

Commit

Permalink
Correct index bounds after binary search
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Apr 26, 2024
1 parent 5e74fee commit 1f81609
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ private static void showQqPlot(double exposureTime, int[] counts, Model m, Windo
lo = 0;
hi = x.getDouble(index);
} else if (index == x.size()) {
lo = x.getDouble(index);
lo = x.getDouble(index - 1);
// The last point should correspond to ~99% of the distribution. For an exponential
// if we double the value it should bracket the quantile.
hi = lo * 2;
Expand Down

0 comments on commit 1f81609

Please sign in to comment.