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

Adds an inverse_cdf() specialization for Uniform #166

Closed
wants to merge 3 commits into from

Conversation

TonyRippy
Copy link
Contributor

Without this, it falls back to the default binary search algorithm, which is not as accurate. For example: using the binary search Uniform::new(0.0, 10.0).unwrap().inverse_cdf(0.5) yeilds 5.0000457763671875, whereas the new specialization yeilds 5.0.

@TonyRippy
Copy link
Contributor Author

Hello, is anyone available to review this PR? I am still interested in getting this change merged.

@henryjac henryjac added this to the 0.17 milestone Mar 6, 2024
@YeungOnion
Copy link
Contributor

Merged as 9e63ee4, thanks for this!

@YeungOnion YeungOnion closed this Apr 28, 2024
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.

3 participants