Time Series Functions.Auto Covariance Function 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.3
C#
A vector containing the auto-correlation function of variable up to order order.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Vector<double> AutoCovarianceFunction(
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
Argument | variable is null. |
Argument | order is less than zero or greater than the length of variable. |