TimeSeriesFunctions.AutocorrelationFunction Method

Gets a vector containing the auto-correlation function (ACF) of a series up to the specified order.

Definition

Namespace: Extreme.Statistics.TimeSeriesAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<double> AutocorrelationFunction(
	this Vector<double> variable,
	int order
)

Parameters

variable  Vector<Double>
A vector containing the time series to analyze.
order  Int32
The highest order of the auto-correlation function to return.

Return Value

Vector<Double>
A vector containing the auto-correlation function of variable up to order order.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionvariable is null.
ArgumentOutOfRangeExceptionorder is less than zero or greater than the length of variable.

See Also