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
Add 95th and 99th percentile to aggregation #3577
base: main
Are you sure you want to change the base?
Conversation
Related issue: vega/vega-lite#4439 Can I propose to add a parameter to set the quantile and to have an ntile aggregate instead? Note that Vega already has a quartile transform: https://vega.github.io/vega/docs/transforms/quantile/. |
I came from the issue, I just think my proposed |
Fair points. Please remove the compiled files and also update the ts types so @jheer can do a review. |
OK, I think it is ready to review. |
Was just looking for this feature today 😄 I think it might be nice to throw |
The 95th and 99th percentile are crucial for some applications e.g. network latency visualization.
I proposed new aggregation operations
p95
andp99
to calculate the 95th, and 99th percentile respectively.By using the well-defined
quantiles()
function, used byq1
andq3
operations.I modify it to add the
p95
andp99
without making a new function.