Click or drag to resize

NMathFunctionsMedian(DoubleMatrix) Method

Computes the median of each of the matrix columns.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleVector Median(
	DoubleMatrix A
)

Parameters

A  DoubleMatrix
A matrix.

Return Value

DoubleVector
A vector.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if A has zero rows.
Remarks
Each column vector is sorted. If the vector has an odd number of elements the middle number is used. Otherwise, the mean of the two middle numbers is used.
See Also