> ## 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.

> quantilesBFloat16와 유사하지만 각 값의 가중치를 반영합니다.

# quantilesBFloat16Weighted

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

도입 버전: v21.10.0

[`quantilesBFloat16`](/docs/ko/reference/functions/aggregate-functions/quantilesBFloat16)와 유사하지만 각 값의 가중치를 고려합니다.

[bfloat16](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format) 숫자로 이루어진 표본에 대해 서로 다른 수준의 여러 근사 [분위수](https://en.wikipedia.org/wiki/Quantile)를 단일 패스로 동시에 계산합니다.

**구문**

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

**매개변수**

* `level` — 분위수 수준입니다. 0부터 1 사이의 상수 부동소수점 수를 1개 이상 지정합니다. `level` 값은 `[0.01, 0.99]` 범위에서 사용하는 것을 권장합니다. [`Float*`](/docs/ko/reference/data-types/float)

**인수**

* `expr` — 컬럼 값에 대한 표현식으로, 결과는 숫자 데이터 타입, `Date` 또는 `DateTime`이어야 합니다. [`(U)Int*`](/docs/ko/reference/data-types/int-uint) or [`Float*`](/docs/ko/reference/data-types/float) or [`Date`](/docs/ko/reference/data-types/date) or [`DateTime`](/docs/ko/reference/data-types/datetime)
* `weight` — 시퀀스 구성원의 가중치를 나타내는 컬럼입니다. 가중치는 값의 발생 횟수를 나타내는 숫자입니다. [`UInt*`](/docs/ko/reference/data-types/int-uint)

**반환 값**

지정된 수준의 근사 분위수를, 수준이 지정된 순서와 동일한 순서로 담은 배열입니다. `Date` 및 `DateTime` 입력의 경우 출력 형식은 입력 형식과 일치합니다. [`Array(Float64)`](/docs/ko/reference/data-types/array) or [`Array(Date)`](/docs/ko/reference/data-types/array) or [`Array(DateTime)`](/docs/ko/reference/data-types/array)

**예시**

**가중치가 적용된 여러 bfloat16 분위수 계산**

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

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