-
Notifications
You must be signed in to change notification settings - Fork 430
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
Optimize Cauchy sampling #493
Conversation
Could you please provide some before/after benchmarks?
For consistency, I would just go with how it was done for the normal distribution. |
|
|
Yes, I found the article (but didn't manage to download it yet). But I think it's worth adding to the credits. Sounds IMO like we should treat this in line with #494; keep the current implementation for now but consider adding this as a fast approximation under |
@vks any suggestion on what we do with this? |
I would prefer to only maintain one implementation. Can we quantify whether the accuracy of the new implementation is better or worse? |
Agreed. Then we (or someone) needs to look into the accuracy. |
Closing (but referenced from a tracker). Ideally we should implement #357 before revisiting this. |
Adding an implementation to a very fast algorithm for calculating Cauchy random numbers.
My basic testing of plotting some histograms seems to indicate it is about as numerically stable as the current method we are using.
Not sure about how to do paper credits so I am looking for feedback about that too.