-
Notifications
You must be signed in to change notification settings - Fork 433
Fix median for Binomial distribution
#1924
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
Conversation
Fix `median` for `Binomial`
Let `median(x::Binomial)` fall back to `quantile(x,1//2)`
Add test, remove `median` definition for `Binomial`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1924 +/- ##
==========================================
- Coverage 85.99% 85.99% -0.01%
==========================================
Files 144 144
Lines 8685 8684 -1
==========================================
- Hits 7469 7468 -1
Misses 1216 1216 ☔ View full report in Codecov by Sentry. |
devmotion
left a comment
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.
Thank you! I updated the tests against R as well which were affected by the same problem.
Fix #1923