mean-sd
Mean and standard-deviation band: mean ± multiplier * sd.
Usage
mean-sd(
values,
multiplier: 1,
weights: none,
)Parameters
| Parameter | Default | Description |
|---|---|---|
values |
Array of numbers; non-numeric entries are dropped. | |
multiplier |
1 |
Multiplier on the sample standard deviation. |
weights |
none |
Optional array of non-negative weights (none for unit weights). Frequency-weight semantics for the weighted standard deviation. |
Returns
Dict (y, ymin, ymax); all-none if values has no numerics.
Examples
Default ±1 σ band.
#let s = mean-sd((2, 3, 4, 5, 6))Widen to ±2 σ for a two-deviation spread.
#let s = mean-sd((2, 3, 4, 5, 6), multiplier: 2)