quantilesInterpolatedWeighted
quantileInterpolatedWeighted,但支持在一次遍历中计算多个分位数级别,因此比逐个调用分位数函数更高效。
语法
level— 分位数的级别。一个或多个介于 0 到 1 之间的常量浮点数。建议将level的值设在[0.01, 0.99]范围内。Float*
expr— 基于列值计算、结果为数值数据类型、Date、DateTime或DateTime64的表达式。(U)Int*orInt128orUInt128orInt256orUInt256orFloat*orDecimal*orDateorDateTimeorDateTime64weight— 序列成员的权重列。权重表示某个值出现的次数。UInt*
Array((U)Int*) or Array(Int128) or Array(UInt128) or Array(Int256) or Array(UInt256) or Array(Float*) or Array(Decimal*) or Array(Date) or Array(DateTime) or Array(DateTime64)
示例
计算多个经插值的加权分位数
Query
Response