Skip to content

sampleQuantile(values, probability): number

Defined in: packages/distribution/src/sample-statistics.ts:147

Quantile by linear interpolation between order statistics (Hyndman and Fan type 7, the default of NumPy, SciPy, and R). The input is not mutated.

NumericSample

number

number

INVALID_SAMPLE when values is empty or holds a non-finite value; INVALID_PROBABILITY when probability is outside [0, 1].