median(
values):number
Defined in: packages/distribution/src/sample-statistics.ts:135
Exact median of a copy of values: the middle value, or the mean of the two middle values. The input is not
mutated.
Parameters
Section titled “Parameters”values
Section titled “values”Returns
Section titled “Returns”number
Throws
Section titled “Throws”INVALID_SAMPLE when values is empty or holds a non-finite value.