Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ibeta power term calculation in the Sterling case #1025

Merged
merged 5 commits into from
Aug 31, 2023
Merged

Conversation

jzmaddock
Copy link
Collaborator

Completes #1007.

Yuhta and others added 5 commits August 5, 2023 12:53
If `guess` passed to `inverse_discrete_quantile` cannot be represented
as floating point number, it is possible that `guess + 1` or `guess - 1`
does not change the value at all and we are stuck in infinite loop
inside `round_to_floor` or `round_to_ceil`.  Fix this by
increase/decrease more than 1 in these cases.

Example code to reproduce this:
```c++
boost::math::binomial_distribution<> dist(9079765771874083840, 0.561815);
boost::math::quantile(dist, 0.0365346);
```
…the non Lanczos case).

Completes work started here: #1007
Fixes Conflicts:
	test/test_binomial.cpp
@jzmaddock
Copy link
Collaborator Author

One failure is a network/clone issue, merging...

@jzmaddock jzmaddock merged commit ce18ea4 into develop Aug 31, 2023
58 of 59 checks passed
@NAThompson NAThompson deleted the pr1007 branch January 24, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants