26#ifndef SCIMATH_HISTACC_H
27#define SCIMATH_HISTACC_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Utilities/Fallible.h>
31#include <casacore/scimath/Mathematics/StatAcc.h>
32#include <casacore/casa/Containers/Block.h>
33#include <casacore/casa/iosfwd.h>
34#include <casacore/casa/Arrays/ArrayFwd.h>
124 HistAcc(
const T low,
const T high,
const T width);
137 inline void put(
const T v);
227#ifndef CASACORE_NO_AUTO_TEMPLATES
228#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.
const StatAcc< T > & getStatistics()
Get the internal Statistics accumulator (see StatAcc,h).
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
Fallible< T > getMedian()
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 > getPercentile(const Float p)
The median is the 50-percentile (getPercentile(50)), i.e.
void put(const Array< T > &vv)
void printHistogram(ostream &, const String &caption)
Print histogram.
void putBuffer(const T v)
Block< uInt > itsBinContents
HistAcc(const uInt nBuff, const T width)
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)
HistAcc(const T low, const T high, const T width)
void initBuffer(const uInt size)
Internal helper functions for the automatic definition of histogram parameters, using the contents of...
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.
void init()
Other internal helper function(s).
Fallible< T > getBinValue(const uInt index) const
Fallible< T > getBinWidth() const
All bins have the same width.
HistAcc & operator=(const HistAcc &)
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.