quantilesExactWeighted
quantileExactWeighted と同等ですが、複数の分位点レベルを1回の処理で計算できるため、個別の分位点関数を呼び出すよりも効率的です。
構文
level— 分位点のレベル。0 から 1 までの 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