> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> bfloat16数のサンプルに対して、異なるレベルの複数の近似分位点を同時に計算します。

# quantilesBFloat16

<div id="quantilesBFloat16">
  ## quantilesBFloat16
</div>

導入バージョン: v21.7.0

[bfloat16](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format) の数値で構成される[サンプル](https://en.wikipedia.org/wiki/Quantile)について、異なるレベルでの複数の近似[分位点](https://en.wikipedia.org/wiki/Quantile)を同時に計算します。

この関数は [`quantileBFloat16`](/docs/ja/reference/functions/aggregate-functions/quantileBFloat16) と同等ですが、1 回の処理で複数の分位点レベルを計算できるため、個別に quantile 関数を呼び出すよりも効率的です。

**構文**

```sql theme={null}
quantilesBFloat16(level1, level2, ...)(expr)
```

**パラメータ**

* `level` — 分位点のレベル。0 から 1 までの定数の floating-point numbers を 1 つ以上指定します。`level` の値には `[0.01, 0.99]` の範囲を使用することを推奨します。[`Float*`](/docs/ja/reference/data-types/float)

**引数**

* `expr` — カラムの値に対する式。結果のデータ型は、数値型、`Date`、または `DateTime` である必要があります。[`(U)Int*`](/docs/ja/reference/data-types/int-uint) または [`Float*`](/docs/ja/reference/data-types/float) または [`Date`](/docs/ja/reference/data-types/date) または [`DateTime`](/docs/ja/reference/data-types/datetime)

**戻り値**

指定したレベルの近似分位点を、指定した順序どおりに格納した Array。`Date` および `DateTime` の入力では、出力フォーマットは入力フォーマットと一致します。[`Array(Float64)`](/docs/ja/reference/data-types/array) または [`Array(Date)`](/docs/ja/reference/data-types/array) または [`Array(DateTime)`](/docs/ja/reference/data-types/array)

**例**

**複数の bfloat16 分位点を計算する**

```sql title=Query theme={null}
SELECT quantilesBFloat16(0.25, 0.5, 0.75)(number) FROM numbers(10)
```

```response title=Response theme={null}
┌─quantilesBFloat16(0.25, 0.5, 0.75)(number)─┐
│ [2,4,7]                                    │
└────────────────────────────────────────────┘
```
