27 #ifndef SCIMATH_STATSDATAPROVIDER_H 28 #define SCIMATH_STATSDATAPROVIDER_H 30 #include <casacore/scimath/Mathematics/StatisticsTypes.h> 32 #include <casacore/casa/aips.h> 39 template <
class AccumType,
class DataIterator,
class MaskIterator=const Bool *,
class WeightsIterator=DataIterator>
61 virtual DataIterator
getData() = 0;
64 virtual MaskIterator
getMask() = 0;
100 virtual void reset() = 0;
123 #ifndef CASACORE_NO_AUTO_TEMPLATES 124 #include <casacore/scimath/Mathematics/StatsDataProvider.tcc> 125 #endif //# CASACORE_NO_AUTO_TEMPLATES virtual uInt getNMaxThreads() const
If OpenMP is enabled and statistics methods are not being called in a multi-threaded context...
virtual void reset()=0
reset the provider to point to the first data set it manages.
unsigned long long uInt64
virtual DataRanges getRanges()=0
Get the associated range(s) of the current dataset.
virtual uInt64 getCount()=0
get the count of elements in the current data set.
virtual WeightsIterator getWeights()=0
Get the associated weights of the current dataset.
virtual void operator++()=0
increment the data provider to the next dataset, mask, range set, and weights.
Abstract base class which defines interface for providing "datasets" to the statistics framework when...
virtual Bool hasWeights() const =0
Does the current data set have associated weights?
virtual Bool hasMask() const =0
Does the current data set have an associated mask?
virtual Bool hasRanges() const =0
Does the current data set have associated range(s)?
virtual Bool isInclude() const =0
If the associated data set has ranges, are these include (return True) or exclude (return False) rang...
virtual void finalize()=0
Take any actions necessary to finalize the provider.
virtual uInt getStride()=0
Get the stride for the current data set.
virtual MaskIterator getMask()=0
Get the associated mask of the current dataset.
virtual uInt getMaskStride()=0
Get the stride for the current mask (only called if hasMask() returns True).
#define DataRanges
Commonly used types in statistics framework.
bool Bool
Define the standard types used by Casacore.
virtual Bool atEnd() const =0
Are there any data sets left to provide?
virtual ~StatsDataProvider()
virtual DataIterator getData()=0
get the current dataset
virtual void updateMaxPos(const std::pair< Int64, Int64 > &)
In general, unless you are writing statistics algorithm code, you shouldn't need to call these method...
virtual void updateMinPos(const std::pair< Int64, Int64 > &)
this file contains all the compiler specific defines