Computes the NaN median of each of the matrix columns.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleVector NaNMedian( DoubleMatrix A ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function NaNMedian ( _ A As DoubleMatrix _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ NaNMedian( DoubleMatrix^ A ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix.
Return Value
A vector.
Remarks
Each column vector's non-NaN numbers are sorted. If the vector has
an odd number of elements the middle number is used. Otherwise, the
mean of the two middle numbers is returned.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if A has zero rows. |