Statistics::Histogram Function

Overload List

#SignatureDescription
1void Histogram(TVec *Data, TVec *Bins, TVec *results);Histogram.
2void Histogram(TVec *Data, const int NumBins, TVec *results, TVec *Bins, bool CenterBins = false);Divide the Data vector elements into NumBins equal intervals.
3void Histogram(TVec *Data, const int NumBins, TVec *results, TVec *Bins, bool CenterBins, double Max, double Min);Same as above, but here only values between Min and Max parameters will be counted.
4void Histogram(TVec *Data, const int NumBins, TVecInt *results, TVec *Bins, bool CenterBins = false);Divide the Data vector elements into NumBins equal intervals.
5void Histogram(TVec *Data, const int NumBins, TVecInt *results, TVec *Bins, bool CenterBins, double Max, double Min);Same as above, but here only values between Min and Max parameters will be counted.

Overload 1: void Histogram(TVec *Data, TVec *Bins, TVec *results);

Histogram.

#NameTypeDescription
1DataTVec *
2BinsTVec *
3resultsTVec *
Remarks:

Divide the Data vector elements into intervals, specified by the Bins vector. The Bins elements define the center points for the intervals. The Bins elements must be sorted in ascending order. The number of elements falling in each interval is counted and the result for each interval (frequency distribution) is written to the Results vector. The Length and Complex properties of the Results vector are adjusted automatically.

Note
Use this version if you need non-equidistant histogram.

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 2: void Histogram(TVec *Data, const int NumBins, TVec *results, TVec *Bins, bool CenterBins = false);

Divide the Data vector elements into NumBins equal intervals.

#NameTypeDescription
1DataTVec *
2NumBinsconst int
3resultsTVec *
4BinsTVec *
5CenterBins = falsebool
Remarks:

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.

Note
Use this version if you need equidistant histogram.

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 3: void Histogram(TVec *Data, const int NumBins, TVec *results, TVec *Bins, bool CenterBins, double Max, double Min);

Same as above, but here only values between Min and Max parameters will be counted.

#NameTypeDescription
1DataTVec *
2NumBinsconst int
3resultsTVec *
4BinsTVec *
5CenterBinsbool
6Maxdouble
7Mindouble
See Also: Statistics::CumulativeHist
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 4: void Histogram(TVec *Data, const int NumBins, TVecInt *results, TVec *Bins, bool CenterBins = false);

Divide the Data vector elements into NumBins equal intervals.

#NameTypeDescription
1DataTVec *
2NumBinsconst int
3resultsTVecInt *
4BinsTVec *
5CenterBins = falsebool
Remarks:

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.

See Also: Statistics::CumulativeHist
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 5: void Histogram(TVec *Data, const int NumBins, TVecInt *results, TVec *Bins, bool CenterBins, double Max, double Min);

Same as above, but here only values between Min and Max parameters will be counted.

#NameTypeDescription
1DataTVec *
2NumBinsconst int
3resultsTVecInt *
4BinsTVec *
5CenterBinsbool
6Maxdouble
7Mindouble
See Also: Statistics::CumulativeHist
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler