Gets the auto-correlation of the elements of a vector.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Autocorrelation ( _ data As Vector, _ lag As Integer _ ) As Double |
| C# |
|---|
public static double Autocorrelation ( Vector data, int lag ) |
| C++ |
|---|
public: static double Autocorrelation ( Vector^ data, int lag ) |
Parameters
- lag (System.Int32)
- The lag at which to evaluate the autocorrelation.
Return Value
The auto-correlation of the elements of data with lag lag.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |
| InsufficientDataException | lag is greater than or equal to the length of data. |