quantilesExactHigh
quantilesExactHigh
Introduced in: v20.8.0
Exactly computes multiple quantiles of a numeric data sequence at different levels simultaneously. For an even number of elements at level 0.5 it returns the higher of the two middle values.
This function is equivalent to quantileExactHigh but allows computing multiple quantile levels in a single pass, which is more efficient than calling individual quantile functions.
Syntax
Parameters
level— Levels of quantiles. One or more constant floating-point numbers from 0 to 1. We recommend usinglevelvalues in the range of[0.01, 0.99].Float*
Arguments
expr— Expression over the column values resulting in numeric data types,Date,DateTimeorDateTime64.(U)Int*orFloat*orDecimal*orDateorDateTimeorDateTime64
Returned value
Array of quantiles of the specified levels in the same order as the levels were specified. For numeric data types the output format matches the input format. Array((U)Int*) or Array(Float*) or Array(Decimal*) or Array(Date) or Array(DateTime) or Array(DateTime64)
Examples
Computing multiple exact high quantiles