Stats.Covariance Method
Gets the covariance between two sets of values.
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The covariance between the two sets of values.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double Covariance(
this Vector<double> data1,
Vector<double> data2
)
Parameters
Return Value
DoubleThe covariance between the two sets of values.
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
ArgumentNullException | data1 is null.
-or- data2 is null. |
Dimension | The length of data1 does not equal the length of data2. |