26 #ifndef SCIMATH_STATSHISTOGRAM_H
27 #define SCIMATH_STATSHISTOGRAM_H
94 Int& minIdx,
Int& maxIdx, AccumType value,
Bool higher
108 "Logic Error: This version for complex "
109 "data types should never be called"
118 "Logic Error: This version for complex "
119 "data types should never be called"
125 template <
class AccumType>
126 ostream &operator<<(ostream &os, const StatsHistogram<AccumType> &hist) {
127 os <<
"min limit " << hist.getMinHistLimit() <<
" max limit "
128 << hist.getMaxHistLimit() <<
" bin width "
129 << hist.getBinWidth() <<
" nbins " << hist.getNBins();
135 #ifndef CASACORE_NO_AUTO_TEMPLATES
136 #include "StatsHistogram.tcc"
137 #endif //# CASACORE_NO_AUTO_TEMPLATES
const std::vector< AccumType > & getMaxBinLimits() const
max limit values for all bins
Represents an unfilled histogram with equal width bins for binning used for quantile computations...
uInt getIndex(AccumType value) const
get the index of the bin containing the specified value
std::complex< Float > Complex
AccumType getMinHistLimit() const
min limit value of entire histogram (ie min limit value of first bin)
AccumType getBinWidth() const
get the binWidth.
std::complex< Double > DComplex
void _minMaxIdxRange(Int &minIdx, Int &maxIdx, AccumType value, Bool higher) const
std::vector< AccumType > _maxBinLimits
maximum values for all bins
bool Bool
Define the standard types used by Casacore.
uInt getNBins() const
get the number of bins
static uInt _getUInt(const AccumType &v)
This does the obvious conversions.
AccumType getMaxHistLimit() const
max limit value of entire histogram (ie max limit value of last bin)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.