TDIGEST.CDF

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

Estimate the fraction of all observations added which are <= value.

Multiple quantiles can be returned with one call.

Parameters:

  • key: The name of the sketch (a t-digest data structure)
  • value: upper limit of observation value, for which the fraction of all observations added which are <= value

Return

Array reply - the command returns an array of results populated with fraction_1, fraction_2, ..., fraction_N.

Examples

redis> TDIGEST.CDF t-digest 10
1) "0.041666666666666664"
redis> TDIGEST.CDF t-digest 10 13
1) "0.041666666666666664"
2) "0.042"
redis> TDIGEST.QUANTILE nonexist 42
"nan"

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.