27 #ifndef LATTICES_LATTICESTATSDATAPROVIDERBASE_H
28 #define LATTICES_LATTICESTATSDATAPROVIDERBASE_H
40 class LatticeProgress;
45 :
public StatsDataProvider<typename NumericTraits<T>::PrecisionType, const T*, const Bool*> {
109 #ifndef CASACORE_NO_AUTO_TEMPLATES
110 #include <casacore/lattices/LatticeMath/LatticeStatsDataProviderBase.tcc>
111 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
const T * getWeights()
Returns NULL; lattices do not have associated weights.
void setProgressMeter(CountedPtr< LattStatsProgress > pm)
Bool hasWeights() const
returns False; lattices do not have associated weights.
void _updateMinPos(const IPosition &minPos)
Abstract base class which defines interface for providing "datasets" to the statistics framework in c...
void setRanges(const std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > &ranges, Bool isInclude)
set the data ranges
std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > getRanges()
Get the associated range(s) of the current dataset.
Bool isInclude() const
If the associated data set has ranges, are these include (return True) or exclude (return False) rang...
Bool hasRanges() const
Does the current data set have associated range(s)?
Char PrecisionType
Higher precision type (Float->Double)
Referenced counted pointer for constant data.
Abstract base class of data providers which allows stats framework to iterate through a lattice...
virtual void finalize()
Take any actions necessary to finalize the provider.
CountedPtr< LattStatsProgress > _progressMeter
uInt getMaskStride()
Get the stride for the current mask (only called if hasMask() returns True).
bool Bool
Define the standard types used by Casacore.
virtual ~LatticeStatsDataProviderBase()
LatticeStatsDataProviderBase()
std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > _ranges
virtual void reset()
reset the provider to point to the beginning of the first data set it manages.
void minMaxPos(IPosition &minpos, IPosition &maxpos) const
get the positions of the min and max
void _updateMaxPos(const IPosition &maxPos)
virtual uInt estimatedSteps() const =0
estimated number of steps to iterate through the the lattice
uInt getStride()
Get the stride for the current data set.