Calculates the Box Cox log-likelihood function for the given data and
and lambda value.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static double LogLikelihood( DoubleVector data, double lambda ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function LogLikelihood ( _ data As DoubleVector, _ lambda As Double _ ) As Double |
| Visual C++ |
|---|
public: static double LogLikelihood( DoubleVector^ data, double lambda ) |
Parameters
- data
- Type: CenterSpace.NMath.Core..::.DoubleVector
The data. Must contain positve values.
- lambda
- Type: System..::.Double
Lambda value.
Return Value
The log-likelihood function value for the given data and lambda value.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if not all data values are positive. |