Calculates the median of an array of numbers.
The array of numbers.
The median of the array. If the array length is even, it returns the average of the two middle numbers. Otherwise, it returns the middle number.
Calculates the median of an array of numbers.