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.
Parameters
Section titled “Parameters”values
Section titled “values”probability
Section titled “probability”number
Returns
Section titled “Returns”number
Throws
Section titled “Throws”INVALID_SAMPLE when values is empty or holds a non-finite value;
INVALID_PROBABILITY when probability is outside [0, 1].