quantilesExactExclusive
Introduced in: v20.1.0 Exactly computes multiple quantiles of a numeric data sequence at different levels simultaneously using the exclusive method. This function is equivalent toquantileExactExclusive but allows computing multiple quantile levels in a single pass, which is more efficient than calling individual quantile functions.
This function uses the exclusive method for calculating quantiles, as described in the R-6 method.
This is equivalent to PERCENTILE.EXC Excel function.
To get exact values, all the passed values are combined into an array, which is then partially sorted.
The sorting algorithm’s complexity is O(N·log(N)), where N = std::distance(first, last) comparisons.
Syntax
level— Levels of quantiles. Constant floating-point numbers from 0 to 1 (exclusive). We recommend usinglevelvalues in the range of(0.01, 0.99).Float*
expr— Expression over the column values resulting in numeric data types, Date or DateTime.(U)Int*orFloat*orDecimal*orDateorDateTime
Array(Float64)
Examples
Computing multiple exact exclusive quantiles
Query
Response