Skip to content

Commit

Permalink
Update medianBy.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 authored Oct 20, 2024
1 parent 931933c commit 69d4643
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/ko/reference/math/medianBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

`getValue` 함수를 각 요소에 적용하여, 요소 배열의 중앙값을 계산하는 함수에요.

빈 배열에 대해서는 `NaN`을 반환해요.
배열의 요소 수가 홀수인 경우, 중앙 요소를 반환해요.
배열의 요소 수가 짝수인 경우, 중앙의 두 요소의 평균을 반환해요.
[중앙값](./median.md)이란 배열을 정렬했을 때 중앙에 위치하는 요소를 말해요.
배열이 홀수 개의 요소를 가진다면, 중앙에 있는 요소를 반환해요.
배열이 짝수 개의 요소를 가진다면, 중앙에 있는 두 요소의 평균을 반환해요.

빈 배열이 주어지면 `NaN`을 반환해요.

## 인터페이스

Expand Down

0 comments on commit 69d4643

Please sign in to comment.