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
Added the percentiles_rank aggregation #6386
Comments
@jpountz Do you see this as a separate aggregation from the percentiles aggregation, a mode on the percentiles aggregation which can be switched on with a parameter (changing the role of the current percents parameter), or something that can be run alongside the percents parameter (so the user can specify percents and cdf values)? |
I think it would be nice to be able to run it alongside the percents parameter? |
+1 Re adding it to the existing |
@uboness Good point. Another thing I'm wondering is how sorting would work if we expose the two metrics in a single aggregation (ie. what would keys look like?) |
Percentile Rank Aggregation is the reverse of the Percetiles aggregation. It determines the percentile rank (the proportion of values less than a given value) of the provided array of values. Closes #6386
The percentiles aggregation currently allows to return a percentile given a percentage. However, the data-structure that we are using under the hoods is also able to do the reverse operation: given a value, what percentage of the values from my dataset are below it?
For example, if you have a dataset of response times and provided it with a response time of 134 (ms), it would be able to tell you that this is the 72th percentile.
The text was updated successfully, but these errors were encountered: