--- acl_categories: - '@tdigest' - '@read' - '@fast' arguments: - name: key type: key categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients complexity: O(1) description: Returns the minimum observation value from a t-digest sketch group: tdigest hidden: false linkTitle: TDIGEST.MIN module: Bloom railroad_diagram: /images/railroad/tdigest.min.svg since: 2.4.0 stack_path: docs/data-types/probabilistic summary: Returns the minimum observation value from a t-digest sketch syntax_fmt: TDIGEST.MIN key title: TDIGEST.MIN --- Returns the minimum observation value from a t-digest sketch. ## Required arguments
key is the key name for an existing t-digest sketch.
## Examples {{< highlight bash >}} 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" {{< / highlight >}} ## Redis Software and Redis Cloud compatibility | Redis
Software | Redis
Cloud | Notes | |:----------------------|:-----------------|:------| | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | | ## Return information {{< multitabs id="tdigest-min-return-info" tab1="RESP2" tab2="RESP3" >}} One of the following: * [Bulk string reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}}) as floating-point representing the minimum observation value from the given sketch. The result is always accurate. `nan` is returned if the sketch is empty. * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) in these cases: incorrect number of arguments or incorrect key type. -tab-sep- One of the following: * [Double reply]({{< relref "/develop/reference/protocol-spec#doubles" >}}) representing the minimum observation value from the given sketch. The result is always accurate. `nan` is returned if the sketch is empty. * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) in these cases: incorrect number of arguments or incorrect key type. {{< /multitabs >}}