| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double Median(
int[] a,
bool preserveOriginalOrder
)
Public Shared Function Median (
a As Integer(),
preserveOriginalOrder As Boolean
) As Double
public:
static double Median(
array<int>^ a,
bool preserveOriginalOrder
)
static member Median :
a : int[] *
preserveOriginalOrder : bool -> float
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
DoubleThe 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