input value
power parameter
Box-Cox transformation of 1+x
var v = boxcox1p( 1.0, 2.5 );
// returns ~1.8627
var v = boxcox1p( 4.0, 2.5 );
// returns ~21.9607
var v = boxcox1p( 10.0, 2.5 );
// returns ~160.1246
var v = boxcox1p( 2.0, 0.0 );
// returns ~1.0986
var v = boxcox1p( -1.0, 2.5 );
// returns -0.4
var v = boxcox1p( 0.0, -1.0 );
// returns 0.0
var v = boxcox1p( -1.0, -1.0 );
// returns -Infinity
Computes a one-parameter Box-Cox transformation of
1+x
.