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

generalBernoulli has true/false flipped #22

Open
dschulman opened this issue Jul 30, 2014 · 0 comments
Open

generalBernoulli has true/false flipped #22

dschulman opened this issue Jul 30, 2014 · 0 comments

Comments

@dschulman
Copy link

In Data.Random.Distribution.Bernoulli, the documentation says the arguments are:
"generalBernoulli t f p" where value t is chosen with probability p and f with probability 1-p.

However, in the implementation, the order is reversed (f before t).
generalBernoulliCDF has the same issue.

Not sure if you'd prefer to update the documentation or the implementation.

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

No branches or pull requests

1 participant