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

RNG statistical correctness checks for floating point and Gaussian values #85

Open
kyonifer opened this issue Oct 30, 2018 · 2 comments

Comments

@kyonifer
Copy link
Owner

It would be useful to implement some tests to check the rigor of our Gaussian and floating point random number streams, since the underlying PCG implementation we are based on only generates integral types (and thus our 1:1 comparisons to them are only for the integral types, not our derived representations). We could potentially compare ourselves to another jvm implementation of PCG or call into a test suite.

@peastman
Copy link
Contributor

testFloatDistribution() and testGaussianDistribution() do check whether the distributions are correct. They aren't super robust, but if there were a bug in the implementation of Box-Muller it would be very unlikely to pass.

@kyonifer
Copy link
Owner Author

Right... this is referring to the potential need for more rigorous testing. We already have that for integers via the direct comparison to the reference implementation which was itself tested against TestU01. But we don't have that for other (derived from integral) types because the reference implementation doesn't generate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants