Performs the Box Cox transformation
transformed data[i] = (data[i]^lambda - 1)/lambda.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static DoubleVector Transform( DoubleVector data, double lambda, double epsilon ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Transform ( _ data As DoubleVector, _ lambda As Double, _ epsilon As Double _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ Transform( DoubleVector^ data, double lambda, double epsilon ) |
Parameters
- data
- Type: CenterSpace.NMath.Core..::.DoubleVector
The data. Must contain positive values.
- lambda
- Type: System..::.Double
Lambda.
- epsilon
- Type: System..::.Double
Values of lambda less than epsilon are considered equal to zero.
Return Value
Vector containg the transformed data.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if not all data values are positive. |