The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class:TVector, TIntVector
Declaration:function Quartiles (LowElem, HighElem: integer; var Q1, Q2, Q3: double): boolean;

The function Quartiles returns the quartiles of the distribution of all vector elements as defined by the parameters LowElem, and HighElem. The first, second, and third quartile are returned in the variable parameters Q1, Q2, and Q3, respectively. Please note that the second quartile Q2 is often denoted as the median of the distribution. The function returns a TRUE value if the quartiles are valid. A returned FALSE value indicates a memory overflow problem.

Example: This method is used in the following example program (see for downloading the code): testvec

Last Update: 2012-Oct-20