MtxExpr.CrossCorr Method

Vector CrossCorr(TVec Vec1, TVec Vec2, Int32 HiLag, Int32 LoLag)

Returns cross correlation between Vec1 and Vec2.

#NameTypeDescription
1Vec1TVecsource TVec
2Vec2TVecsource TVec
3HiLagInt32
4LoLagInt32

Returns: Vector

Remarks:

Internally calls Dew.Math.Vector.CrossCorr

Examples
Vector a;
Vector b;
Vector c;
a.SetIt(false,new double[] {1,-2,3,4});
b.SetIt(false,new double[] {2,-2,3,4});
c.CrossCorr(a,b,2,2);