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

Comments

Projects
None yet
1 participant
@psteitz
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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