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>
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>
135 #ifndef CASACORE_NO_AUTO_TEMPLATES
136 #include "StatsHistogram.tcc"
Represents an unfilled histogram with equal width bins for binning used for quantile computations.
std::vector< AccumType > _maxBinLimits
maximum values for all bins
AccumType getMinHistLimit() const
min limit value of entire histogram (ie min limit value of first bin)
AccumType getMaxHistLimit() const
max limit value of entire histogram (ie max limit value of last bin)
static uInt _getUInt(const AccumType &v)
This does the obvious conversions.
uInt getNBins() const
get the number of bins
uInt getIndex(AccumType value) const
get the index of the bin containing the specified value
StatsHistogram(AccumType minLimit, AccumType maxLimit, uInt nBins)
Construct a histogram by specifying its minimum and maximum values and the number of desired bins.
void _minMaxIdxRange(Int &minIdx, Int &maxIdx, AccumType value, Bool higher) const
AccumType getBinWidth() const
get the binWidth.
const std::vector< AccumType > & getMaxBinLimits() const
max limit values for all bins
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.