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

Replace distribution::Sample with Distribution + polymorphism over Rng #256

Merged
merged 14 commits into from
Feb 20, 2018

Commits on Feb 19, 2018

  1. Replace Sample and IndependentSample with Distribution

    This is heavily inspired by #27 by @GrahamDennis but simpler trait and
    maintains backwards compatibility with deprecations.
    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    8a19d63 View commit details
    Browse the repository at this point in the history
  2. Add Rng::sample function

    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    ceefe5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    147aa86 View commit details
    Browse the repository at this point in the history
  4. Remove impl of Rand SeedableRng impls

    Replaces rng.gen() to seed new RNGs with from_rng(&mut rng)
    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    e98e62c View commit details
    Browse the repository at this point in the history
  5. Add the Uniform distribution

    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    7fdf707 View commit details
    Browse the repository at this point in the history
  6. Move float sampling from Rand to distributions

    Move default sampling to Default distribution
    Make Open01 and Closed01 distributions instead of wrappers
    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    d48b40e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cfa41f9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    865e4ae View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    49a4358 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0f8c352 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    18ae3fb View commit details
    Browse the repository at this point in the history
  12. Make Rng::gen() and random() use Uniform.

    This breaks rand_derive because gen() no longer
    supports derived types.
    dhardy committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    7dc370f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3f0892a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    11b2b45 View commit details
    Browse the repository at this point in the history