Click or drag to resize

NMathFunctionsNaNVariance(DoubleVector) Method

Calculates the biased variance of the vector elements that are not equal to NaN.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double NaNVariance(
	DoubleVector v
)

Parameters

v  DoubleVector
A vector.

Return Value

Double
The biased variance of the elements in v that are not NaN.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if v has zero length.
Remarks
variance = (System.Math.pow(v[0] - mean, 2) + System.Math.pow(v[1] - mean, 2)) / n
See Also