StatTimeSerAnalysis::BoxCox Function

void BoxCox(TVec *U, TVec *Y, const double Lambda);

Box-Cox transformation.

#NameTypeDescription
1UTVec *Time series.
2YTVec *Transformed time series. Size of Y is adjusted automatically.
3Lambdaconst doubleBox-Cox transformation lambda value. An exception is raised if Lambda < 0 .
Remarks:

Performs Box-Cox transformation on time series. The Box-Cox transformation is defined by the following equation:

fλ(Ut)={λ1(Utλ1)Ut0,λ>0lnUtUt>0,λ=0f_\lambda (U_t) = \begin{cases} \lambda ^{-1} (U_t ^\lambda- 1) & U_t \geq 0, \lambda > 0 \\ \ln U_t & U_t > 0 , \lambda = 0 \end{cases}
See Also: StatTimeSerAnalysis::BoxCoxInv
Declared in Dew::Stats::Units::StatTimeSerAnalysis · Dew.Stats/Units.StatTimeSerAnalysis.h · Cross-compiler