Vector::AutoCorrNormal Method

TVec *AutoCorrNormal(TVec *Vec, int Lags) const;

Normal auto-corellation.

#NameTypeDescription
1VecTVec *
2Lagsint
Remarks:

Calculates the normal auto-correlation of the vector Vec. The result of Length = Lags is stored in the calling vector (V). The Lags parameter must be equal or smaller than the calling vector (V) length. The normal auto-correlation is defined by the following equation:

V[k]=k=0Length1Vec[k]Vec[k+n],where 0kLagsVec[k]={Vec[k]0kLength0otherwise\begin{aligned} \text{V}[k] &= \sum _{k=0} ^{\text{Length}-1} \text{Vec}[k] \cdot \text{Vec}[k+n] ,\quad \text{where } 0 \leq k \leq \text{Lags} \\ \text{Vec}[k] &= \begin{cases} \text{Vec}[k] & 0\leq k \leq \text{Length} \\ 0 & \text{otherwise} \end{cases} \end{aligned}
See Also: Vector::AutoCorrBiased, Vector::AutoCorrUnBiased
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler