Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/boxcox/docs/types/index.d"

Index

Functions

Functions

Export assignment boxcox

  • boxcox(x: number, lambda: number): number
  • Computes a one-parameter Box-Cox transformation.

    Parameters

    • x: number

      input value

    • lambda: number

      power parameter

    Returns number

    Box-Cox transformation

    Example

    var v = boxcox( 1.0, 2.5 );
    // returns 0.0

    Example

    var v = boxcox( 4.0, 2.5 );
    // returns 12.4

    Example

    var v = boxcox( 10.0, 2.5 );
    // returns ~126.0911

    Example

    var v = boxcox( 2.0, 0.0 );
    // returns ~0.6931

    Example

    var v = boxcox( -1.0, 2.5 );
    // returns NaN

    Example

    var v = boxcox( 0.0, -1.0 );
    // returns -Infinity