Skip to main content

boxcox1p

Function boxcox1p 

Source
pub fn boxcox1p(x: f64, lambda: f64) -> f64
Expand description

Box-Cox transformation of 1 + x

For small x and lambda, this transformation is more numerically stable than boxcox.

Returns f64::NAN if x < -1.0. Returns f64::NEG_INFINITY if x == -1.0 && lambda < 0.0.

Corresponds to scipy.special.boxcox1p.

ยงSee also

  • inv_boxcox1p: Inverse of the Box-Cox transformation of 1 + x
  • boxcox: Box-Cox transformation of x