TVec AutoCorrNormal(TVec Vec, Int32 Lags)
Normal auto-corellation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec | source TVec |
| 2 | Lags | Int32 |
Result: stored in self (calling object), returns self for chaining
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:
Examples
Vector a;
Vector b;
a.SetIt(false,new double[] {1,2,3,4});
b.AutoCorrNormal(a,2);
See Also: Vector.AutoCorrBiased, Vector.AutoCorrUnBiased