TDIGEST.MIN

语法
TDIGEST.MIN key
可用版本
Redis 开源版 / Bloom 2.4.0
时间复杂度
O(1)
ACL 类别
@tdigest, @read, @fast,

返回 t-digest 草图中的最小观测值。

必需参数

key是现有 t-digest 草图的键名。

返回值

简单字符串回复,表示草图中的最小观测值。结果总是准确的。如果草图为空,则返回 'nan'。

示例

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

评价本页
回到顶部 ↑
© . This site is unofficial and not affiliated with Redis, Inc.