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

Restore support for sampling from enumerated distributions #19

Closed
psteitz opened this issue Dec 30, 2016 · 1 comment
Closed

Restore support for sampling from enumerated distributions #19

psteitz opened this issue Dec 30, 2016 · 1 comment

Comments

@psteitz
Copy link
Contributor

@psteitz psteitz commented Dec 30, 2016

The nextDeviate methods in RandomDataGenerator should provide better implementations than the generic inversion-based methods for enumerated real and integer distributions.

@psteitz
Copy link
Contributor Author

@psteitz psteitz commented Dec 30, 2016

Fixed in a9937cb. Added direct support for weighted sampling with replacement from {0, ... n-1}. Used this to provide default samplers for enumerated real and integer distributions.

@psteitz psteitz closed this Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant