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 2-dimensional Histograms:

Functions

template<class InputItX , class InputItY , class OutputIt >
void jkqtpstatHistogram2D (InputItX firstX, InputItX lastX, InputItY firstY, InputItY lastY, OutputIt histogramImgOut, double xmin, double xmax, double ymin, double ymax, size_t xbins=10, size_t ybins=10, bool normalized=true)
 calculate a 2-dimensional histogram from the given data range firstX / firstY ... lastY / lastY
 

Detailed Description

Function Documentation

◆ jkqtpstatHistogram2D()

template<class InputItX , class InputItY , class OutputIt >
void jkqtpstatHistogram2D ( InputItX  firstX,
InputItX  lastX,
InputItY  firstY,
InputItY  lastY,
OutputIt  histogramImgOut,
double  xmin,
double  xmax,
double  ymin,
double  ymax,
size_t  xbins = 10,
size_t  ybins = 10,
bool  normalized = true 
)
inline

calculate a 2-dimensional histogram from the given data range firstX / firstY ... lastY / lastY

Template Parameters
InputItXstandard iterator type of firstX and lastX.
InputItYstandard iterator type of firstY and lastY.
OutputItstandard output iterator type used for the outliers output histogramXOut and histogramYOut, use e.g. std::back_inserter
Parameters
firstXiterator pointing to the first x-position item in the dataset to use $ X_1 $
lastXiterator pointing behind the last x-position item in the dataset to use $ X_N $
firstYiterator pointing to the first y-position item in the dataset to use $ Y_1 $
lastYiterator pointing behind the last y-position item in the dataset to use $ Y_N $
[out]histogramImgOutoutput iterator that receives counts of the histogram bins in row-major ordering
xminposition of the first histogram bin in x-direction
xmaxposition of the last histogram bin in x-direction
yminposition of the first histogram bin in y-direction
ymaxposition of the last histogram bin in y-direction
xbinsnumber of bins in x-direction (i.e. width of the output histogram histogramImgOut )
ybinsnumber of bins in y-direction (i.e. height of the output histogram histogramImgOut )
normalizedindicates whether the histogram has to be normalized
See also
jkqtpstatAddHHistogram1DAutoranged()