-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implementation, testing, and examples of Fisher-Yates #137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We need to add test and doc code from Java
- The SecureRandom RNG will be passed to VMC (unlike for other distributions)
…hub.com/dafny-lang/dafny-vmc into fisher-yates-implementation-and-testing
} | ||
|
||
method TestEmpiricalIsWithin4SigmaOfTrueMean( | ||
method TestEmpiricalIsWithin3SigmaOfTrueMean( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI: we had a threshold of 3 sigma before and quite regularly got spurious test failures with it, which is to be expected given our number of tests.
return Uniform.Implementation._Companion_Trait.UniformSample(this, n); | ||
} | ||
|
||
public boolean CoinSample() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A problem with doing this is that the Java API will be nicer, but is the idea that we should do this for every target?
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.