You are here: Symbol Reference > Statistics Namespace > Functions > Statistics.Histogram Function
Stats Master VCL
ContentsIndex
PreviousUpNext
Statistics.Histogram Function

Divide the Data vector elements into NumBins equal intervals.

Pascal
procedure Histogram(const Data: TVec; const NumBins: Integer; const Results: TVecInt; const Bins: TVec; CenterBins: boolean = false); overload;

The number of elements falling in each interval is counted and the result for each interval (frequency distribution) is written to the Results vector. if CenterBins is true then Bins will store bins center points. If CenterBins is false, Bins will store bins edges.The Length and Complex properties of the Results and Bins vectors are adjusted automatically.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!