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

Implement sampling from the unit sphere and circle #567

Merged
merged 3 commits into from Jul 27, 2018

Commits on Jul 27, 2018

  1. Implement sampling from the unit sphere

    This uses a method by Marsaglia (1972), which was found to be the
    fastest of the methods given by [MathWorld].
    
    [MathWorld]: http://mathworld.wolfram.com/SpherePointPicking.html
    vks committed Jul 27, 2018
    Copy the full SHA
    3841dc8 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    4dfec8a View commit details
    Browse the repository at this point in the history
  3. Add uniformity test for unit sphere and circle

    This introduces an external dev-dependency on the `average` crate.
    vks committed Jul 27, 2018
    Copy the full SHA
    f8767d0 View commit details
    Browse the repository at this point in the history