IMSL C# Numerical Library

CrossCorrelation.GetCrossCorrelations Method 

Returns the cross-correlations between the time series x and y.

public double[] GetCrossCorrelations();

Return Value

A double array of length 2 * maximumLag + 1 containing the cross-correlations between the time series x and y.

Remarks

The cross-correlation between x and y at lag k, where k = -maximumLag,..., 0, 1,...,maximumLag, corresponds to output array indices 0, 1,..., (2*maximumLag).

Exceptions

Exception Type Condition
NonPosVarianceXYException is thrown if the problem is ill-conditioned. The variance is too small to work with.

See Also

CrossCorrelation Class | Imsl.Stat Namespace