> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> quantileExact와 비슷하게 숫자 데이터 시퀀스의 정확한 [분위수](https://en.wikipedia.org/wiki/Quantile)를 계산합니다.

# quantileExactLow

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

도입 버전: v20.8.0

[`quantileExact`](/ko/reference/functions/aggregate-functions/quantileExact)와 유사하게, 이 함수는 숫자 데이터 시퀀스의 정확한 [분위수](https://en.wikipedia.org/wiki/Quantile)를 계산합니다.

정확한 값을 얻기 위해 전달된 모든 값을 하나의 배열로 결합한 후 완전히 정렬합니다.
정렬 알고리즘의 복잡도는 `O(N·log(N))`이며, 여기서 `N = std::distance(first, last)`는 비교 횟수입니다.

반환값은 분위수 수준과 선택된 요소 수에 따라 달라집니다. 즉, 수준이 0.5이면 요소 수가 짝수일 때 함수는 더 작은 중앙값을 반환하고, 홀수일 때는 가운데 중앙값을 반환합니다.
중앙값은 Python에서 사용되는 [median\_low](https://docs.python.org/3/library/statistics.html#statistics.median_low) 구현과 유사한 방식으로 계산됩니다.

그 외의 모든 수준에서는 `level * size_of_array` 값에 해당하는 인덱스의 요소를 반환합니다.

하나의 쿼리에서 수준이 서로 다른 여러 `quantile*` 함수를 사용하면 내부 상태가 결합되지 않습니다(즉, 쿼리가 최적보다 비효율적으로 동작합니다).
이 경우 [quantiles](/ko/reference/functions/aggregate-functions/quantiles) 함수를 사용하십시오.

**구문**

```sql theme={null}
quantileExactLow(level)(expr)
```

**별칭**: `medianExactLow`

**매개변수**

* `level` — 선택 사항입니다. 분위수 수준을 지정합니다. 0부터 1까지의 상수 부동소수점 수입니다. `level` 값은 `[0.01, 0.99]` 범위에서 사용하는 것을 권장합니다. 기본값은 0.5입니다. `level=0.5`이면 함수는 중앙값을 계산합니다. [`Float*`](/ko/reference/data-types/float)

**인수**

* `expr` — 컬럼 값에 대한 표현식으로, 결과는 숫자 데이터 타입, Date 또는 DateTime이어야 합니다. [`(U)Int*`](/ko/reference/data-types/int-uint) 또는 [`Float*`](/ko/reference/data-types/float) 또는 [`Decimal*`](/ko/reference/data-types/decimal) 또는 [`Date`](/ko/reference/data-types/date) 또는 [`DateTime`](/ko/reference/data-types/datetime)

**반환 값**

지정된 수준의 분위수를 반환합니다. [`Float64`](/ko/reference/data-types/float) 또는 [`Date`](/ko/reference/data-types/date) 또는 [`DateTime`](/ko/reference/data-types/datetime)

**예시**

**정확한 낮은 분위수 계산**

```sql title=Query theme={null}
SELECT quantileExactLow(number) FROM numbers(10);
```

```response title=Response theme={null}
┌─quantileExactLow(number)─┐
│                        4 │
└──────────────────────────┘
```

**특정 수준의 분위수 계산**

```sql title=Query theme={null}
SELECT quantileExactLow(0.1)(number) FROM numbers(10);
```

```response title=Response theme={null}
┌─quantileExactLow(0.1)(number)─┐
│                             1 │
└───────────────────────────────┘
```
