quantiles
Three quantiles packed into the standard summary shape.
Returns (y: <mid>, ymin: <lo>, ymax: <hi>) where each component is the type-7 quantile at the matching probability in probs. Probabilities are not reordered: pass them in (low, central, high) order.
Usage
quantiles(
values,
probs: (0.25, 0.5, 0.75),
)Parameters
| Parameter | Default | Description |
|---|---|---|
values |
Array of numbers; non-numeric entries are dropped. | |
probs |
(0.25, 0.5, 0.75) |
Three probabilities in [0, 1], ordered low-mid-high. |
Returns
Dict (y, ymin, ymax); all-none if values has no numerics.
Examples
Median plus the IQR via explicit probabilities.
#let s = quantiles(range(1, 10), probs: (0.25, 0.5, 0.75))