Gets the lag-1 auto-correlation of the elements of an array.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Autocorrelation ( _ data As Double() _ ) As Double |
| C# |
|---|
public static double Autocorrelation ( double[] data ) |
| C++ |
|---|
public: static double Autocorrelation ( array<double>^ data ) |
Parameters
- data ()
- A Double array.
Return Value
The lag-1 auto-correlation of the elements of data.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |