TDIGEST.BYREVRANK

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

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

Multiple estimations can be returned with one call.

Parameters:

  • key: The name of the sketch (a t-digest data structure)
  • value: input reverse 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.BYREVRANK t-digest 100 200
1) "10"
2) "5"

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.