TimeSeriesFunctions.AutocorrelationFunction Method

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

Definition

Namespace: Numerics.NET.Statistics.TimeSeriesAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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

ArgumentNullException

variable is null.

ArgumentOutOfRangeException

order is less than zero or greater than the length of variable.

See Also