quantilesExactWeightedInterpolated
quantileExactWeightedInterpolated,但支持在一次遍历中计算多个分位数级别,因此比逐个调用分位数函数更高效。
语法
level— 分位数的级别。一个或多个介于 0 到 1 之间的常量浮点数。建议将level值设在[0.01, 0.99]范围内。Float*
expr— 基于列值的表达式,其结果为数值数据类型、Date、DateTime或DateTime64。(U)Int*或Int128或UInt128或Int256或UInt256或Float*或Decimal*或Date或DateTime或DateTime64weight— 包含序列成员权重的列。权重表示值出现的次数。UInt*
Float64,而 Decimal、Date、DateTime 和 DateTime64 参数会保留其输入格式。Array(Float64) 或 Array(Decimal*) 或 Array(Date) 或 Array(DateTime) 或 Array(DateTime64)
示例
计算多个精确加权插值分位数
Query
Response