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

fix quantileIndex #276

Merged
merged 2 commits into from May 30, 2023
Merged

fix quantileIndex #276

merged 2 commits into from May 30, 2023

Conversation

mbostock
Copy link
Member

Fixes #275.

Also fixes a related issue, which is that quantileIndex and medianIndex should return -1, not undefined, to match the behavior of minIndex, maxIndex, greatIndex, and leastIndex.

@mbostock mbostock requested a review from Fil May 30, 2023 21:21
@mbostock mbostock merged commit f005cf8 into main May 30, 2023
1 check passed
@mbostock mbostock deleted the mbostock/fix-quantile-index branch May 30, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

medianIndex/quantileIndex doesn’t handle missing data
2 participants