Click or drag to resize

NMathFunctionsCovariance(DoubleVector, DoubleVector) Method

Computes the covariance of two data sets.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double Covariance(
	DoubleVector data1,
	DoubleVector data2
)

Parameters

data1  DoubleVector
The first data set.
data2  DoubleVector
The second data set.

Return Value

Double
Covariance.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data1 or data2 has a length of zero.
MismatchedSizeException Thrown if data1 and data2 have different lengths.
Remarks
Uses the default bias in StatsSettings.
See Also