Matrix.Median Method

function Median: Double;

Median.

Returns: Double

Remarks:

Calculate median value for all calling object elements.

Examples
var a: Matrix;
    c: double;
begin
    a.SetIt(1,4,False,[1,2,3,4]);
    c := a.Median;
end;
See Also: Matrix.Mean

Indexed: function Median(Index: Integer; Len: Integer): Double;

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

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Returns: Double

Remarks:

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