-
Notifications
You must be signed in to change notification settings - Fork 91
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
Distributions #32
Comments
@phimage, do you have any implementation suggestions? |
I am not familiar with rust, packaging, types, etc... but I can read some code Be fastThere is more than one approximation method to generate number with random distributions I use polar form of the Box-Muller transformation for gaussian there is others method like I mention in my code here
I don`t study this method, but I think ziggurat is faster Be modularMy implementation #26 was protocol-oriented, like RandomKit Not add too much compile timeIt seems that my implementation add too much compile time for you #29 |
So one negative thing that struck out to me with the previous implementation was that it added methods to types implementing the distribution protocol that were outside of RandomKit's scope. In order to avoid this, we could have only the methods required for the protocols. Then implement the protocols individually for |
There doesn't seem to be any current swift3/4 compilable code that can do Weibull distribution. Eric's implementation seems to come undone with renaming of RandomWithinClosedRange it would be neat if this was all self contained. |
RandomKit should be able to generate random floating-point values with various distributions.
They should:
Rust's rand crate implements this via separate types.
The text was updated successfully, but these errors were encountered: