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