Matrix.Median Method

Double Median

Median.

Returns: Double

Remarks:

Calculate median value for all calling object elements.

Examples
Matrix a;
double c;
a.SetIt(1,4,false,new double[] {1,2,3,4});
c = a.Median;
See Also: Matrix.Mean

Indexed: Double Median(Int32 Index, Int32 Len)

Calculate median value for calling Matrix elements [Index]..[Index+Len-1].

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Returns: Double

Remarks:

An exception is raised if Dew.Math.Matrix.ConditionCheck is true and array borders are overrun.