Percentile (several percentiles in one go).
procedure Percentile(const X: TVec; const P: Array of double; var Percentiles: Array of double; Method: TPercentileMethod = pctMethodNPlus); overload;
This overload calculates percentiles for all P elements in one pass. The advantage of this overload is X sample values only have to be sorted once.
procedure Example; var Data: Vector; P, Pct: Array of double; begin Data.LoadFromFile('c:tempExamplesDataPercentile.vec'); SetLength(P,4); SetLength(Pct,4); Percentile(Data,P,Pct); end;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|