pub fn boxcox(x: f64, lambda: f64) -> f64Expand description
Box-Cox transformation
The Box-Cox transformation is:
x.ln()iflambda == 0.0(x.powf(lambda) - 1.0) / lambdaiflambda != 0.0
Returns f64::NAN if x < 0.0.
Returns f64::NEG_INFINITY if x == 0.0 && lambda < 0.0.
Corresponds to scipy.special.boxcox.
ยงSee also
inv_boxcox: Inverse of the Box-Cox transformationboxcox1p: Box-Cox transformation of 1 +x