Closed herilalaina closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
bebc36e
) 73.47% compared to head (361d403
) 73.47%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR fixes issue #283 by improving the implementation of
_compute_normalization
. In the original version, this function returns the sum of probabilities over the specified interval. It has a limitation when dealing with large intervals, as discussed in the issue.In this PR, the original implementation is modified to compute the sum only within the interval that contains
99.99999999%
of the data. This change is only applied when the difference between the lower and upper bounds is large enough to cause the issue.I am not sure how to rigorously test the code. For now, I have added a few test cases to compare the output of both the original and modified implementations.