Click or drag to resize

NMathFunctionsNaNCovariance(DoubleVector, DoubleVector) Method

Computes the covariance of two data sets, excluding pairs where either value is missing.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double NaNCovariance(
	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 the given data has zero non-NaN pairs.
Remarks
Uses the default bias in StatsSettings.
See Also