27 #ifndef LATTICES_LATTICESTATSDATAPROVIDERBASE_H 28 #define LATTICES_LATTICESTATSDATAPROVIDERBASE_H 30 #include <casacore/scimath/Mathematics/StatsDataProvider.h> 32 #include <casacore/scimath/Mathematics/NumericTraits.h> 33 #include <casacore/lattices/Lattices/LatticeIterator.h> 34 #include <casacore/lattices/LatticeMath/LattStatsProgress.h> 36 #include <casacore/casa/aips.h> 40 class LatticeProgress;
45 :
public StatsDataProvider<typename NumericTraits<T>::PrecisionType, const T*, const Bool*> {
113 #ifndef CASACORE_NO_AUTO_TEMPLATES 114 #include <casacore/lattices/LatticeMath/LatticeStatsDataProviderBase.tcc> 115 #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 hasRanges() const
Does the current data set have associated range(s)?
void _updateMinPos(const IPosition &minPos)
Abstract base class which defines interface for providing "datasets" to the statistics framework when...
Bool isInclude() const
If the associated data set has ranges, are these include (return True) or exclude (return False) rang...
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.
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.
Bool hasWeights() const
returns False; lattices do not have associated weights.
void minMaxPos(IPosition &minpos, IPosition &maxpos) const
get the positions of the min and max
virtual ~LatticeStatsDataProviderBase()
typedef typename NumericTraits<T>::PrecisionType AccumType;
LatticeStatsDataProviderBase()
std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > _ranges
virtual void reset()
reset the provider to point to the first data set it manages.
void _updateMaxPos(const IPosition &maxPos)
virtual uInt _nsteps() const = 0;
this file contains all the compiler specific defines
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.