TDIGEST.BYRANK

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

Retrieve an estimation of the value with the given the rank.

Multiple estimations can be returned with one call.

Parameters:

  • key: The name of the sketch (a t-digest data structure)
  • value: input rank, for which the value will be determined

Return

Array reply - the command returns an array of results populated with value_1, value_2, ..., value_N.

Examples

redis> TDIGEST.BYRANK t-digest 100 200
1) "5"
2) "10"

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.