29 #ifndef SCIMATH_HISTACC_H
30 #define SCIMATH_HISTACC_H
41 template <
class T>
class Array;
127 HistAcc(
const T low,
const T high,
const T width);
140 inline void put(
const T v);
196 void defineBins(
const T low,
const T high,
const T width);
230 #ifndef CASACORE_NO_AUTO_TEMPLATES
231 #include <casacore/scimath/Mathematics/HistAcc.tcc>
232 #endif //# CASACORE_NO_AUTO_TEMPLATES
void put(const T v)
Accumulate (put) value(s) into the histogram.
Fallible< uInt > getHistogram(Block< uInt > &bins, Block< T > &values)
The return value is the nr of histogram bins, and is invalid if the number is zero.
Block< uInt > itsBinContents
Fallible< T > getBinValue(const uInt index) const
Fallible< T > getBinWidth() const
All bins have the same width.
void copy(const HistAcc &)
Copy operations.
HistAcc(const uInt nBuff)
Constructors and destructor.
void printHistogram(ostream &, const String &caption)
Print histogram.
void reset()
Reset the contents of the bins to zero, but retain the current bin definition.
uInt getSpurious(uInt &tooSmall, uInt &tooLarge)
Get the nr of `spurious' values, i.e.
void emptyBinsWithLessThan(const uInt nmin)
Empty all bins whose contents is < nmin (e.g.
Mark a value as valid or invalid.
bool Bool
Define the standard types used by Casacore.
void put1(const T)
Accumulate a single value into the histogram.
void init()
Other internal helper function(s).
template <class T, class U> class vector;
void putBuffer(const T v)
Makes a histogram from input values.
void defineBins(const T low, const T high, const T width)
Definition of histogram bins with given parameters.
String: the storage and methods of handling collections of characters.
Block< T > itsBinHighLimit
Fallible< T > getMedian()
HistAcc & operator=(const HistAcc &)
const StatAcc< T > & getStatistics()
Get the internal Statistics accumulator (see StatAcc,h).
Fallible< T > getPercentile(const Float p)
The median is the 50-percentile (getPercentile(50)), i.e.
void initBuffer(const uInt size)
Internal helper functions for the automatic definition of histogram parameters, using the contents of...
A statistics accumulator.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.