Gets the auto-correlation of the elements of a vector.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function Autocorrelation ( _
	data As Vector, _
	lag As Integer _
) As Double
C#
public static double Autocorrelation (
	Vector data,
	int lag
)
C++
public:
static double Autocorrelation (
	Vector^ data, 
	int lag
)

Parameters

data (Extreme.Mathematics.LinearAlgebra.Vector)
A Vector.
lag (System.Int32)
The lag at which to evaluate the autocorrelation.

Return Value

The auto-correlation of the elements of data with lag lag.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.
InsufficientDataExceptionlag is greater than or equal to the length of data.