content/commands/tdigest.cdf.md
Returns, for each input value, an estimation of the floating-point fraction of (observations smaller than the given value + half the observations equal to the given value). Multiple fractions can be retrieved in a single call.
is the key name for an existing t-digest sketch.
</details> <details open><summary><code>value</code></summary>are the values for which the CDF (Cumulative Distribution Function) should be retrieved.
</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.CDF t 0 1 2 3 4 5 6
| 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-cdf-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
nan if the given sketch is empty.-tab-sep-
One of the following:
nan if the given sketch is empty.{{< /multitabs >}}