quantileDeterministic
This function applies reservoir sampling with a reservoir size up to 8192 and deterministic algorithm of sampling. The result is deterministic. To get an exact quantile, use the function.
When using multiple functions with different levels in a query, the internal states are not combined (that is, the query works less efficiently than it could). In this case, use the quantiles function.
Syntax
Parameters
level
— Level of quantile. Optional parameter. Constant floating-point number from 0 to 1. We recommend using a value in the range of[0.01, 0.99]
. Default value: 0.5. Atlevel=0.5
the function calculates .- — Expression over the column values resulting in numeric data types, or DateTime.
Returned value
- Approximate quantile of the specified level.
Type:
- for numeric data type input.
- DateTime if input values have the type.
Input table:
Query:
Result: