| NMathFunctionsNaNMedian(FloatVector) Method |
Calculates the median value of vector elements that are not equal
to (float) NaN.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static float NaNMedian(
FloatVector v
)
Public Shared Function NaNMedian (
v As FloatVector
) As Single
public:
static float NaNMedian(
FloatVector^ v
)
static member NaNMedian :
v : FloatVector -> float32
Parameters
- v FloatVector
- A vector.
Return Value
SingleThe median value of the elements in
v that are not
NaN.
Exceptions Remarks
A vector of non-NaN numbers is sorted. If the vector has an odd
number of elements the middle number is returned. Otherwise, the
mean of the two middle numbers is returned.
See Also