27 #ifndef SCIMATH_STATISTICSINCREMENTER_H
28 #define SCIMATH_STATISTICSINCREMENTER_H
30 #include <casacore/casa/aips.h>
38 class DataIterator,
class MaskIterator=
const Bool *,
39 class WeightsIterator=DataIterator
52 DataIterator& datum,
uInt64& loopCount,
uInt dataStride
54 std::advance(datum, dataStride);
59 DataIterator& datum,
uInt64& loopCount,
60 WeightsIterator& weight,
uInt dataStride
62 std::advance(datum, dataStride);
63 std::advance(weight, dataStride);
68 DataIterator& datum,
uInt64& loopCount, MaskIterator&
mask,
71 std::advance(datum, dataStride);
72 std::advance(
mask, maskStride);
77 DataIterator& datum,
uInt64& loopCount, WeightsIterator& weight,
80 std::advance(datum, dataStride);
81 std::advance(weight, dataStride);
82 std::advance(
mask, maskStride);
Utility functions used for incrementing pointers in a data set used by the stats framework.
static void increment(DataIterator &datum, uInt64 &loopCount, WeightsIterator &weight, MaskIterator &mask, uInt dataStride, uInt maskStride)
static void increment(DataIterator &datum, uInt64 &loopCount, uInt dataStride)
loopCount is always incremented by one, independent of the value of dataStride and maskStride
static void increment(DataIterator &datum, uInt64 &loopCount, WeightsIterator &weight, uInt dataStride)
StatisticsIncrementer()=delete
static void increment(DataIterator &datum, uInt64 &loopCount, MaskIterator &mask, uInt dataStride, uInt maskStride)
this file contains all the compiler specific defines
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.
unsigned long long uInt64