TDIGEST.MAX

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

Returns the maximum observation value from a t-digest sketch.

Required arguments

key is key name for an existing t-digest sketch.

Return value

Simple string reply of maximum observation value from a sketch. The result is always accurate. 'nan' if the sketch is empty.

Examples

redis> TDIGEST.CREATE t
OK
redis> TDIGEST.MAX t
"nan"
redis> TDIGEST.ADD t 3 4 1 2 5
OK
redis>TDIGEST.MAX t
"5"

Rate this page