Skip to content

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.

NumericSample

number

INVALID_SAMPLE when values is empty or holds a non-finite value.