You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > Median Method > TMtxVecInt.Median Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.Median Method ()

Median.

Pascal
function Median: integer; overload;

Calculate median value for all calling object elements.

Mean

var a: TVecInt; c: integer; begin CreateIt(a); try a.SetIt([1,2,3,4]); c := a.Median; finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!