Vector.Median Method

function Median: Double;

Median.

Returns: Double

Remarks:

Calculate median value for all calling object elements.

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

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

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

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Returns: Double

Remarks:

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