Click or drag to resize

NMathFunctionsNaNMean(FloatVector) Method

Calculates the mean 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 float NaNMean(
	FloatVector v
)

Parameters

v  FloatVector
A vector.

Return Value

Single
The mean of the elements in v that are not NaN.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if v has zero length.
Remarks
mean = (v[0] + v[1] + ...) / n
See Also