median
Call Signature
Section titled “Call Signature”median(
values):number
Defined in: average.ts:139
Calculates the median of a list of numbers.
The median is the middle value when the numbers are sorted in ascending order.
If there is an even number of values, the median is the average of the two middle values.
The input is never modified.
Parameters
Section titled “Parameters”values
Section titled “values”readonly number[]
The values to calculate the median of, as an array or as separate arguments.
Returns
Section titled “Returns”number
Median of the numbers.
https://en.wikipedia.org/wiki/Median
Call Signature
Section titled “Call Signature”median(…
values):number
Defined in: average.ts:140
Calculates the median of a list of numbers.
The median is the middle value when the numbers are sorted in ascending order.
If there is an even number of values, the median is the average of the two middle values.
The input is never modified.
Parameters
Section titled “Parameters”values
Section titled “values”…number[]
The values to calculate the median of, as an array or as separate arguments.
Returns
Section titled “Returns”number
Median of the numbers.