You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > TVec.AutoCorrUnBiased Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.AutoCorrUnBiased Method

Unbiased auto-correlation.

Pascal
function AutoCorrUnBiased(const Vec: TVec; Lags: integer; const Buffer: TVecInt = nil): TVec;

Calculate the unbiased 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 unbiased auto-correlation is defined by the following equation: 

 

 

The Buffer parameter allows the same work memory to be used between consecutive calls to this and other functions. The Buffer object will not be resized, if sufficient memory is present.

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