-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: random.beta with small parameters #5858
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
Conversation
@@ -199,7 +199,20 @@ double rk_beta(rk_state *state, double a, double b) | |||
|
|||
if ((X + Y) <= 1.0) | |||
{ | |||
return X / (X + Y); | |||
if (X +Y > 0) | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{
on previous line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, IIRC, this is random.c style ;)
Minor style nitpick. LGTM otherwise, assuming the code is doing the right thing. |
Fixed the missing space, left the braces to match the surrounding code. |
BUG: random.beta with small parameters
Thanks Jaime. |
No description provided.