Click or drag to resize

NMathFunctionsNaNMedian(DoubleVector) Method

Calculates the median value of vector elements that are not equal to NaN.

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

Parameters

v  DoubleVector
A vector.

Return Value

Double
The median value of the elements in v that are not NaN.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if v has zero non-NaN length.
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