26#ifndef SCIMATH_STATACC_H
27#define SCIMATH_STATACC_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/BasicMath/Math.h>
31#include <casacore/casa/Utilities/Fallible.h>
32#include <casacore/casa/iosfwd.h>
33#include <casacore/casa/Arrays/ArrayFwd.h>
38template <
class T>
class Block;
122template<
class T>
class StatAcc {
147 inline void put(
const T v);
202inline void StatAcc<T>::put(
const T v) {
215#ifndef CASACORE_NO_AUTO_TEMPLATES
216#include <casacore/scimath/Mathematics/StatAcc.tcc>
Mark a value as valid or invalid.
String: the storage and methods of handling collections of characters.
StatAcc()
A statistics accumulator
this file contains all the compiler specific defines
Fallible< Double > getRms() const
void put1(const T)
Accumulate a single value into the histogram.
Fallible< Double > getRmsAbs() const
void printSummaryList(std::ostream &, const String &caption) const
Print summary of accumulated statistics.
Fallible< Double > getVariance() const
LatticeExprNode operator+(const LatticeExprNode &expr)
Global functions operating on a LatticeExprNode.
void printSummaryLine(std::ostream &, const String &caption) const
void reset()
Reset the contents of the bins to zero, but retain the current bin definition.
void copy(double *target, int npixels) const
Fallible< Double > getMax() const
Fallible< Double > getMin() const
Fallible< Double > getMean() const
StatAcc & operator+=(const StatAcc &)
Record & operator=(const Record &other)
Copy the data in the other record to this record.
Double getWtot() const
Get statistics results one at a time.
void printSummaryLineHeader(std::ostream &, const String &caption) const
void put(const T v)
Accumulate (put) value(s) into the histogram.