26 #ifndef SCIMATH_STATSHISTOGRAM_H 27 #define SCIMATH_STATSHISTOGRAM_H 29 #include <casacore/casa/Utilities/DataType.h> 30 #include <casacore/casa/aips.h> 31 #include <casacore/casa/Exceptions/Error.h> 34 #include <casacore/casa/iosfwd.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
Represents an unfilled histogram with equal width bins for binning used for quantile computations...
std::complex< Float > Complex
std::complex< Double > DComplex
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
AccumType getMaxHistLimit() const
max limit value of entire histogram (ie max limit value of last bin)
AccumType getBinWidth() const
get the binWidth.
static uInt _getUInt(const AccumType &v)
This does the obvious conversions.
AccumType getMinHistLimit() const
min limit value of entire histogram (ie min limit value of first bin)
void _minMaxIdxRange(Int &minIdx, Int &maxIdx, AccumType value, Bool higher) const
const std::vector< AccumType > & getMaxBinLimits() const
max limit values for all bins
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
uInt getIndex(AccumType value) const
get the index of the bin containing the specified value