TDIGEST.MAX

Syntax
TDIGEST.MAX key
Available in:
Redis Stack / Bloom 2.4.0
Time complexity:
O(1)

Get the maximum observation value from the sketch.

Parameters:

  • key: The name of the sketch (a t-digest data structure)

Return

Simple string reply of the maximum observation value from the sketch. Return 'nan' if the sketch is empty.

Examples

redis> TDIGEST.MAX t-digest
"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.