26#ifndef SCIMATH_STATACC_H
27#define SCIMATH_STATACC_H
31#include <casacore/casa/aips.h>
32#include <casacore/casa/BasicMath/Math.h>
33#include <casacore/casa/iosfwd.h>
34#include <casacore/casa/Arrays/ArrayFwd.h>
149 inline void put(
const T v);
200inline void StatAcc<T>::put(
const T v) {
211#ifndef CASACORE_NO_AUTO_TEMPLATES
212#include <casacore/scimath/Mathematics/StatAcc.tcc>
String: the storage and methods of handling collections of characters.
String operator+(const String &lhs, const String &rhs)
Global concatenation operators.
StatAcc()
A statistics accumulator.
For temporary backward namespace compatibility, use casa as alias for casacore.
void put1(const T)
Accumulate a single value into the histogram.
std::optional< Double > getMean() const
void printSummaryList(std::ostream &, const String &caption) const
Print summary of accumulated statistics.
void printSummaryLine(std::ostream &, const String &caption) const
std::optional< Double > getMax() const
std::optional< Double > getRmsAbs() const
void reset()
Reset the contents of the bins to zero, but retain the current bin definition.
void copy(double *target, int npixels) const
std::optional< Double > getRms() const
std::optional< Double > getMin() const
StatAcc & operator+=(const StatAcc &)
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.
std::optional< Double > getVariance() const
Block< T > & operator=(const T &val)
Set all values in the block to "val".