Skip to content

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

Merged
merged 1 commit into from
May 10, 2015
Merged

Conversation

jaimefrio
Copy link
Member

No description provided.

@@ -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)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ on previous line.

Copy link
Member

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 ;)

@charris
Copy link
Member

charris commented May 9, 2015

Minor style nitpick. LGTM otherwise, assuming the code is doing the right thing.

@jaimefrio
Copy link
Member Author

Fixed the missing space, left the braces to match the surrounding code.

charris added a commit that referenced this pull request May 10, 2015
BUG: random.beta with small parameters
@charris charris merged commit c65fc9e into numpy:master May 10, 2015
@charris
Copy link
Member

charris commented May 10, 2015

Thanks Jaime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants