-
Notifications
You must be signed in to change notification settings - Fork 158
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
Golden tests for the non-integral calculations #449
Conversation
] | ||
] | ||
print $ map leaderComputation leaderTest | ||
-- precomputedLeader <- |
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.
any reason to keep all these comments in?
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.
thanks for catching this, I removed all those comments and also unused definitions
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.
👍
The C++ test program emits test results to stdout and benchmark timing to stderr.
- Remove commented out code - Remove unused definitions from older versions
63272a4
to
62a71f2
Compare
Golden tests for the non-integral calculations
Adds golden tests in the following format
x a b
and checks for
e^x ln(a) (1-(1-f)^b) (approx(a < 1-(1-f)^b)) LT/GT n
were the last uses Taylor series expansion to approximate the threshold calculation and uses the error term to expand only as far as necessary.