computeQuartiles
Chart
stable
Computes the five-number Tukey summary (min, Q1, median, Q3, max) plus IQR and outlier list for a sample array. Non-finite values are filtered out before computation.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- samplesrequiredArray<number>
- Array of numeric observations. Need not be pre-sorted; may be empty. Non-finite values (NaN, Infinity) are ignored.
API
Return value
The value returned by this util.
- An object with min, q1, median, q3, max, iqr, and outliers. Returns all-zero stats when the filtered sample set is empty.
Usage
Examples
Ready-to-paste usage snippets.
Box-plot stats for a dataset