-
Notifications
You must be signed in to change notification settings - Fork 726
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
fix(computeStats) #427 Exception thrown when firstQuartile and thirdQuartile are equal #841
Conversation
Pull Request Test Coverage Report for Build 290721624
💛 - Coveralls |
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.
Hey @LethalPants thanks for the fix AND the test 🚀 ! I had one suggestion but otherwise looks good.
One thing that tripped me up on this is For example: data = [10000, 2400, 10000, 10000]
computeStats(data).boxPlot;
{
"min": 500,
"firstQuartile": 6200,
"median": 10000,
"thirdQuartile": 10000,
"max": 15700,
"outliers": []
} The expected output should be {
"min": 2400,
"firstQuartile": 6200,
"median": 10000,
"thirdQuartile": 10000,
"max": 10000,
"outliers": []
} No need to fix this here with this PR, but wanted to flag it as I stumbled on this while reviewing. |
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 again @LethalPants, looks good.
Pull Request Test Coverage Report for Build 289136555Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
🐛 Bug Fix
firstQuartile
andthirdQuartile
Test result