You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Vector.CrossCorr Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.CrossCorr Method

The cross-correlation of two vectors.

Pascal
function CrossCorr(const Vec1: TVec; const Vec2: TVec; HiLag: integer; LoLag: integer): TVec;

Calculate the cross-correlation of two vectors Vec1 and Vec2. The parameter HiLag indicates the top of the range of lags at which the correlation estimates should be computed. The parameter LoLag indicates the bottom of the range of lags at which the correlation estimates should be computed. The results are stored in calling vector. The resulting elements are defined by the equation: 

 

var a,b,c: Vector; begin a.SetIt(False,[1,-2,3,4]); b.SetIt(False,[2,-2,3,4]); c.CrossCorr(a,b,2,2); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!