29 #ifndef SCIMATH_HISTACC_H
30 #define SCIMATH_HISTACC_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Utilities/Fallible.h>
34 #include <casacore/scimath/Mathematics/StatAcc.h>
35 #include <casacore/casa/Containers/Block.h>
36 #include <casacore/casa/iosfwd.h>
37 #include <casacore/casa/Arrays/ArrayFwd.h>
127 HistAcc(
const T low,
const T high,
const T width);
140 inline void put(
const T v);
230 #ifndef CASACORE_NO_AUTO_TEMPLATES
231 #include <casacore/scimath/Mathematics/HistAcc.tcc>
Mark a value as valid or invalid.
Makes a histogram from input values.
void put(const T v)
Accumulate (put) value(s) into the histogram.
void put1(const T)
Accumulate a single value into the histogram.
HistAcc(const uInt nBuff)
Constructors and destructor.
void emptyBinsWithLessThan(const uInt nmin)
Empty all bins whose contents is < nmin (e.g.
Block< T > itsBinHighLimit
void copy(const HistAcc &)
Copy operations.
void defineBins(const T low, const T high, const T width)
Definition of histogram bins with given parameters.
Fallible< T > getBinWidth() const
All bins have the same width.
void put(const Array< T > &vv)
void printHistogram(ostream &, const String &caption)
Print histogram.
void putBuffer(const T v)
Fallible< T > getPercentile(const Float p)
The median is the 50-percentile (getPercentile(50)), i.e.
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 > getMedian()
HistAcc & operator=(const HistAcc &)
HistAcc(const uInt nBuff, const T width)
void reset()
Reset the contents of the bins to zero, but retain the current bin definition.
Fallible< T > getBinValue(const uInt index) const
uInt getSpurious(uInt &tooSmall, uInt &tooLarge)
Get the nr of ‘spurious’ values, i.e.
void put(const Block< T > &vv)
HistAcc(const T low, const T high, const T width)
const StatAcc< T > & getStatistics()
Get the internal Statistics accumulator (see StatAcc,h).
void initBuffer(const uInt size)
Internal helper functions for the automatic definition of histogram parameters, using the contents of...
void init()
Other internal helper function(s).
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.