Go to the documentation of this file.
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>
41 template <
class T>
class Array;
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>
232 #endif //# CASACORE_NO_AUTO_TEMPLATES
Mark a value as valid or invalid.
Fallible< T > getBinWidth() const
All bins have the same width.
Makes a histogram from input values.
void put1(const T)
Accumulate a single value into the histogram.
HistAcc(const uInt nBuff, const T width)
void copy(const HistAcc &)
Copy operations.
HistAcc(const T low, const T high, const T width)
void putBuffer(const T v)
HistAcc & operator=(const HistAcc &)
void initBuffer(const uInt size)
Internal helper functions for the automatic definition of histogram parameters, using the contents of...
Fallible< T > getBinValue(const uInt index) const
void init()
Other internal helper function(s).
Block< uInt > itsBinContents
Fallible< T > getPercentile(const Float p)
The median is the 50-percentile (getPercentile(50)), i.e.
Fallible< T > getMedian()
void put(const T v)
Accumulate (put) value(s) into the histogram.
this file contains all the compiler specific defines
const StatAcc< T > & getStatistics()
Get the internal Statistics accumulator (see StatAcc,h).
HistAcc(const uInt nBuff)
Constructors and destructor.
void printHistogram(ostream &, const String &caption)
Print histogram.
void put(const Array< T > &vv)
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.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
void defineBins(const T low, const T high, const T width)
Definition of histogram bins with given parameters.
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 put(const Block< T > &vv)
void emptyBinsWithLessThan(const uInt nmin)
Empty all bins whose contents is < nmin (e.g.
Block< T > itsBinHighLimit