-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Binomial::sample panics with extreme parameters #1378
Comments
A panic in |
Working on it now |
I can't find an easy relationship between So we can:
|
I also found some panics in |
Sorry for the delay — there's no obvious best approach here. With that said, I suggest:
This is all assuming that it is possible to find reasonable bounds on inputs with a low impact on real usage. |
One problem is that we enter the BTPE even when I don't know if there are more issues than this, but this could be prevented by rejecting this condition. BTPE needs this condition, otherwise you get a negative radius in |
panics with
Uniform::new called with low >= high
at:rand/rand_distr/src/binomial.rs
Line 180 in 1f4507a
The text was updated successfully, but these errors were encountered: