JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
Collaboration diagram for 1-dimensional Histograms:

Enumerations

enum class  JKQTPStatHistogramBinXMode {
  JKQTPStatHistogramBinXMode::XIsLeft ,
  JKQTPStatHistogramBinXMode::XIsMid ,
  JKQTPStatHistogramBinXMode::XIsRight
}
 defines where the returned x-coordinates (in histogramXOut) lie inside a histogram bin More...
 

Functions

template<class InputIt , class BinsInputIt , class OutputIt >
void jkqtpstatHistogram1D (InputIt first, InputIt last, BinsInputIt binsFirst, BinsInputIt binsLast, OutputIt histogramXOut, OutputIt histogramYOut, bool normalized=true, bool cummulative=false, JKQTPStatHistogramBinXMode binXMode=JKQTPStatHistogramBinXMode::XIsLeft)
 calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined the range binsFirst ... binsLast
 
template<class InputIt , class OutputIt >
void jkqtpstatHistogram1DAutoranged (InputIt first, InputIt last, OutputIt histogramXOut, OutputIt histogramYOut, double binWidth, bool normalized=true, bool cummulative=false, JKQTPStatHistogramBinXMode binXMode=JKQTPStatHistogramBinXMode::XIsLeft)
 calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined by their width
 
template<class InputIt , class OutputIt >
void jkqtpstatHistogram1DAutoranged (InputIt first, InputIt last, OutputIt histogramXOut, OutputIt histogramYOut, int bins=11, bool normalized=true, bool cummulative=false, JKQTPStatHistogramBinXMode binXMode=JKQTPStatHistogramBinXMode::XIsLeft)
 calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined by their number
 

Detailed Description

Enumeration Type Documentation

◆ JKQTPStatHistogramBinXMode

enum class JKQTPStatHistogramBinXMode
strong

defines where the returned x-coordinates (in histogramXOut) lie inside a histogram bin

See also
jkqtpstatHistogram()
Enumerator
XIsLeft 

x-location is the left edge of the bin

XIsMid 

x-location is the middle of the bin

XIsRight 

x-location is the right edge of the bin

Function Documentation

◆ jkqtpstatHistogram1D()

template<class InputIt , class BinsInputIt , class OutputIt >
void jkqtpstatHistogram1D ( InputIt  first,
InputIt  last,
BinsInputIt  binsFirst,
BinsInputIt  binsLast,
OutputIt  histogramXOut,
OutputIt  histogramYOut,
bool  normalized = true,
bool  cummulative = false,
JKQTPStatHistogramBinXMode  binXMode = JKQTPStatHistogramBinXMode::XIsLeft 
)
inline

calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined the range binsFirst ... binsLast

Template Parameters
InputItstandard iterator type of first and last.
BinsInputItstandard iterator type of binsFirst and binsLast.
OutputItstandard output iterator type used for the outliers output histogramXOut and histogramYOut, use e.g. std::back_inserter
Parameters
firstiterator pointing to the first item in the dataset to use $ X_1 $
lastiterator pointing behind the last item in the dataset to use $ X_N $
binsFirstiterator pointing to the first item in the set of histogram bins
binsLastiterator pointing behind the last item in the set of histogram bins
[out]histogramXOutoutput iterator that receives x-positions of the histogram bins. Location of this value inside the bin range is defined by binXMode
[out]histogramYOutoutput iterator that receives counts/frequencies of the histogram bins
normalizedindicates whether the histogram has to be normalized
cummulativeif true, a cummulative histogram is calculated
binXModedefines where the returned x-coordinates (in histogramXOut) lie inside the histogram bin (see JKQTPStatHistogramBinXMode)
See also
jkqtpstatAddHHistogram1D()

◆ jkqtpstatHistogram1DAutoranged() [1/2]

template<class InputIt , class OutputIt >
void jkqtpstatHistogram1DAutoranged ( InputIt  first,
InputIt  last,
OutputIt  histogramXOut,
OutputIt  histogramYOut,
double  binWidth,
bool  normalized = true,
bool  cummulative = false,
JKQTPStatHistogramBinXMode  binXMode = JKQTPStatHistogramBinXMode::XIsLeft 
)
inline

calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined by their width

Template Parameters
InputItstandard iterator type of first and last.
OutputItstandard output iterator type used for the outliers output histogramXOut and histogramYOut, use e.g. std::back_inserter
Parameters
firstiterator pointing to the first item in the dataset to use $ X_1 $
lastiterator pointing behind the last item in the dataset to use $ X_N $
[out]histogramXOutoutput iterator that receives x-positions of the histogram bins. Location of this value inside the bin range is defined by binXMode
[out]histogramYOutoutput iterator that receives counts/frequencies of the histogram bins
binWidthwidth of the bins
normalizedindicates whether the histogram has to be normalized
cummulativeif true, a cummulative histogram is calculated
binXModedefines where the returned x-coordinates (in histogramXOut) lie inside the histogram bin (see JKQTPStatHistogramBinXMode)
See also
jkqtpstatAddHHistogram1DAutoranged()

◆ jkqtpstatHistogram1DAutoranged() [2/2]

template<class InputIt , class OutputIt >
void jkqtpstatHistogram1DAutoranged ( InputIt  first,
InputIt  last,
OutputIt  histogramXOut,
OutputIt  histogramYOut,
int  bins = 11,
bool  normalized = true,
bool  cummulative = false,
JKQTPStatHistogramBinXMode  binXMode = JKQTPStatHistogramBinXMode::XIsLeft 
)
inline

calculate an autoranged 1-dimensional histogram from the given data range first ... last, bins defined by their number

Template Parameters
InputItstandard iterator type of first and last.
OutputItstandard output iterator type used for the outliers output histogramXOut and histogramYOut, use e.g. std::back_inserter
Parameters
firstiterator pointing to the first item in the dataset to use $ X_1 $
lastiterator pointing behind the last item in the dataset to use $ X_N $
[out]histogramXOutoutput iterator that receives x-positions of the histogram bins. Location of this value inside the bin range is defined by binXMode
[out]histogramYOutoutput iterator that receives counts/frequencies of the histogram bins
binsnumber of bins in the output histogram
normalizedindicates whether the histogram has to be normalized
cummulativeif true, a cummulative histogram is calculated
binXModedefines where the returned x-coordinates (in histogramXOut) lie inside the histogram bin (see JKQTPStatHistogramBinXMode)
See also
jkqtpstatAddHHistogram1DAutoranged()