TDIGEST.QUANTILE

Syntax
TDIGEST.QUANTILE key quantile [quantile ...]
Available in:
Redis Stack / Bloom 2.4.0
Time complexity:
O(1)

Returns estimates of one or more cutoffs such that a specified fraction of the observations added to this t-digest would be less than or equal to each of the specified cutoffs.

Multiple quantiles can be returned with one call.

Parameters:

  • key: The name of the sketch (a t-digest data structure)
  • quantile: The desired fraction (between 0 and 1 inclusively)

Return

Array reply - the command returns an array of results populated with cutoff_1, cutoff_2, ..., cutoff_N.

Examples

redis> TDIGEST.QUANTILE t-digest 0.5
1) "100.42"
redis> TDIGEST.QUANTILE t-digest 0.5 0.999
1) "100.42"
2) "190.01"

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.