IMSL C# Numerical Library

AutoCorrelation.GetAutoCovariances Method 

Returns the variance and autocovariances of the time series x.

public double[] GetAutoCovariances();

Return Value

A double array of length maximumLag + 1 containing the variances and autocovariances of the time series x.

Remarks

The 0-th element of the array contains the variance of the time series x. The k-th element contains the autocovariance of lag k where k = 1, ..., maximumLag.

Exceptions

Exception Type Condition
NonPosVarianceException is thrown if the problem is ill-conditioned.

See Also

AutoCorrelation Class | Imsl.Stat Namespace