casa
5.7.0-16
|
Represents an unfilled histogram with equal width bins for binning used for quantile computations. More...
#include <StatsHistogram.h>
Public Member Functions | |
StatsHistogram ()=delete | |
StatsHistogram (AccumType minLimit, AccumType maxLimit, uInt nBins) | |
Construct a histogram by specifying its minimum and maximum values and the number of desired bins. More... | |
~StatsHistogram () | |
AccumType | getBinWidth () const |
get the binWidth. More... | |
uInt | getIndex (AccumType value) const |
get the index of the bin containing the specified value More... | |
const std::vector< AccumType > & | getMaxBinLimits () const |
max limit values for all bins More... | |
AccumType | getMaxHistLimit () const |
max limit value of entire histogram (ie max limit value of last bin) More... | |
AccumType | getMinHistLimit () const |
min limit value of entire histogram (ie min limit value of first bin) More... | |
uInt | getNBins () const |
get the number of bins More... | |
Private Member Functions | |
void | _minMaxIdxRange (Int &minIdx, Int &maxIdx, AccumType value, Bool higher) const |
template<> | |
uInt | _getUInt (const casacore::Complex &) |
template<> | |
uInt | _getUInt (const casacore::DComplex &) |
Static Private Member Functions | |
static uInt | _getUInt (const AccumType &v) |
This does the obvious conversions. More... | |
Private Attributes | |
AccumType | _binWidth |
AccumType | _minHistLimit |
AccumType | _maxHistLimit |
uInt | _nBins |
std::vector< AccumType > | _maxBinLimits |
maximum values for all bins More... | |
Represents an unfilled histogram with equal width bins for binning used for quantile computations.
It is necessary to store the min/max values of the bin limits, because machine precision issues when the bin width is sufficiently small can cause slightly different results for these when different methods are used to compute them, leading to accounting errors when the histogram is filled with data.
Definition at line 47 of file StatsHistogram.h.
|
delete |
casacore::StatsHistogram< AccumType >::StatsHistogram | ( | AccumType | minLimit, |
AccumType | maxLimit, | ||
uInt | nBins | ||
) |
Construct a histogram by specifying its minimum and maximum values and the number of desired bins.
No padding of the min/max values is done internally, so the caller should do that prior to construction if necessary.
casacore::StatsHistogram< AccumType >::~StatsHistogram | ( | ) |
|
inlinestaticprivate |
This does the obvious conversions.
The Complex and DComplex specializations (implemented below after the close of the class definition) are used solely to permit compilation. In general, those versions should never actually be called
Definition at line 89 of file StatsHistogram.h.
|
inlineprivate |
In general, these versions should never actually be called
Definition at line 104 of file StatsHistogram.h.
References ThrowCc.
|
inlineprivate |
Definition at line 114 of file StatsHistogram.h.
References ThrowCc.
|
private |
AccumType casacore::StatsHistogram< AccumType >::getBinWidth | ( | ) | const |
get the binWidth.
uInt casacore::StatsHistogram< AccumType >::getIndex | ( | AccumType | value | ) | const |
get the index of the bin containing the specified value
const std::vector<AccumType>& casacore::StatsHistogram< AccumType >::getMaxBinLimits | ( | ) | const |
max limit values for all bins
AccumType casacore::StatsHistogram< AccumType >::getMaxHistLimit | ( | ) | const |
max limit value of entire histogram (ie max limit value of last bin)
AccumType casacore::StatsHistogram< AccumType >::getMinHistLimit | ( | ) | const |
min limit value of entire histogram (ie min limit value of first bin)
uInt casacore::StatsHistogram< AccumType >::getNBins | ( | ) | const |
get the number of bins
|
private |
Definition at line 80 of file StatsHistogram.h.
|
private |
maximum values for all bins
Definition at line 83 of file StatsHistogram.h.
|
private |
Definition at line 80 of file StatsHistogram.h.
|
private |
Definition at line 80 of file StatsHistogram.h.
|
private |
Definition at line 81 of file StatsHistogram.h.