pub fn boxcox(x: f64, lambda: f64) -> f64
The Box-Cox transform (x^λ − 1)/λ, and ln x for λ = 0 (SciPy’s special.boxcox), written with exp_m1 so that it is continuous and accurate near λ = 0.
(x^λ − 1)/λ
ln x
λ = 0
special.boxcox
exp_m1