content/commands/tdigest.quantile.md
Returns, for each input fraction, a floating-point estimation of the value that is smaller than the given fraction of observations. Multiple quantiles can be retrieved in a single call.
is the key name for an existing t-digest sketch.
</details> <details open><summary><code>quantile</code></summary>is the input fraction between 0 and 1 inclusively.
</details>{{< highlight bash >}} redis> TDIGEST.CREATE t COMPRESSION 1000 OK redis> TDIGEST.ADD t 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 OK redis> TDIGEST.QUANTILE t 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="tdigest-quantile-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
quantile is 0, the value of the smallest observation.quantile is 1, the value of the largest observation.nan for all quantiles when the given sketch is empty.-tab-sep-
One of the following:
quantile is 0, the value of the smallest observation.quantile is 1, the value of the largest observation.nan for all quantiles when the given sketch is empty.{{< /multitabs >}}