Click or drag to resize

NMathFunctionsMedian(Int32, Boolean) Method

Returns the median of an array of data with the option for preserving or destroying the original input data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double Median(
	int[] a,
	bool preserveOriginalOrder
)

Parameters

a  Int32
An array containing the data.
preserveOriginalOrder  Boolean
If true the data in the input array will not be changed. if false, the data in the input array may be reordered by the algorithm.

Return Value

Double
The median of the data.
Remarks
If the preserveOriginalOrder parameter is set to true, a copy of the input data will be made before applying the median algorithm, thus preserving the input data in its original order. If preserveOriginalOrder is set to false, no copy of the input data is made before applying the median algorithm and the input data may be reorded by the algorithm.
See Also