Click or drag to resize

NMathFunctionsCovariance(FloatVector, FloatVector, BiasType) Method

Computes the covariance of two data sets using the specified bias.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static float Covariance(
	FloatVector data1,
	FloatVector data2,
	BiasType type
)

Parameters

data1  FloatVector
The first data set.
data2  FloatVector
The second data set.
type  BiasType
Biased or unbiased.

Return Value

Single
Covariance.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data1 or data2 has a length of zero.
MismatchedSizeException Thrown if data1 and data2 have different lengths.
See Also