| NMathFunctionsNaNVariance(FloatVector) Method |
Calculates the biased variance of the vector elements that are not
equal to NaN.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static float NaNVariance(
FloatVector v
)
Public Shared Function NaNVariance (
v As FloatVector
) As Single
public:
static float NaNVariance(
FloatVector^ v
)
static member NaNVariance :
v : FloatVector -> float32
Parameters
- v FloatVector
- A vector.
Return Value
SingleThe biased variance of the elements in
v that are not
NaN.
Exceptions Remarks variance = (System.Math.pow(v[0] - mean, 2) + System.Math.pow(v[1] - mean, 2)) / n
See Also