casacore
|
Abstract base class of data providers which allows stats framework to iterate through a lattice. More...
#include <LatticeStatsDataProviderBase.h>
Public Member Functions | |
virtual | ~LatticeStatsDataProviderBase () |
virtual uInt | estimatedSteps () const =0 |
estimated number of steps to iterate through the the lattice More... | |
virtual void | finalize () |
Take any actions necessary to finalize the provider. More... | |
uInt | getMaskStride () |
Get the stride for the current mask (only called if hasMask() returns True). More... | |
std::vector< std::pair < typename NumericTraits< T > ::PrecisionType, typename NumericTraits< T > ::PrecisionType > > | getRanges () |
Get the associated range(s) of the current dataset. More... | |
uInt | getStride () |
Get the stride for the current data set. More... | |
const T * | getWeights () |
Returns NULL; lattices do not have associated weights. More... | |
Bool | hasRanges () const |
Does the current data set have associated range(s)? More... | |
Bool | hasWeights () const |
returns False; lattices do not have associated weights. More... | |
Bool | isInclude () const |
If the associated data set has ranges, are these include (return True) or exclude (return False) ranges? More... | |
void | minMaxPos (IPosition &minpos, IPosition &maxpos) const |
get the positions of the min and max More... | |
virtual void | reset () |
reset the provider to point to the beginning of the first data set it manages. More... | |
void | setProgressMeter (CountedPtr< LattStatsProgress > pm) |
void | setRanges (const std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > &ranges, Bool isInclude) |
set the data ranges More... | |
Public Member Functions inherited from casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * > | |
virtual | ~StatsDataProvider () |
virtual void | operator++ ()=0 |
increment the data provider to the next dataset, mask, range set, and weights. More... | |
virtual Bool | atEnd () const =0 |
Are there any data sets left to provide? More... | |
virtual uInt64 | getCount ()=0 |
get the count of elements in the current data set. More... | |
virtual const T * | getData ()=0 |
get an iterator to the first element of the current dataset More... | |
virtual const Bool * | getMask ()=0 |
Get an iterator to the first element of the mask for the current dataset. More... | |
virtual uInt | getNMaxThreads () const |
If OpenMP is enabled and statistics methods are being called in a multi-threaded context, get maximum number of threads that should be used. More... | |
virtual Bool | hasMask () const =0 |
Does the current data set have an associated mask? More... | |
virtual void | updateMaxPos (const LocationType &) |
In general, unless you are writing statistics algorithm code, you shouldn't need to call these methods. More... | |
virtual void | updateMinPos (const LocationType &) |
Protected Member Functions | |
LatticeStatsDataProviderBase () | |
void | _updateMaxPos (const IPosition &maxPos) |
void | _updateMinPos (const IPosition &minPos) |
void | _updateProgress () |
Protected Member Functions inherited from casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * > | |
StatsDataProvider () | |
Private Attributes | |
Bool | _hasRanges |
Bool | _isInclude |
std::vector< std::pair < typename NumericTraits< T > ::PrecisionType, typename NumericTraits< T > ::PrecisionType > > | _ranges |
CountedPtr< LattStatsProgress > | _progressMeter |
IPosition | _minPos |
IPosition | _maxPos |
Abstract base class of data providers which allows stats framework to iterate through a lattice.
Definition at line 44 of file LatticeStatsDataProviderBase.h.
|
virtual |
|
protected |
|
inlineprotected |
Definition at line 94 of file LatticeStatsDataProviderBase.h.
References casacore::LatticeStatsDataProviderBase< T >::_maxPos.
|
inlineprotected |
Definition at line 96 of file LatticeStatsDataProviderBase.h.
References casacore::LatticeStatsDataProviderBase< T >::_minPos.
|
protected |
|
pure virtual |
estimated number of steps to iterate through the the lattice
Implemented in casacore::MaskedLatticeStatsDataProvider< T >, and casacore::LatticeStatsDataProvider< T >.
|
virtual |
Take any actions necessary to finalize the provider.
This will be called when atEnd() returns True.
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
Reimplemented in casacore::MaskedLatticeStatsDataProvider< T >, and casacore::LatticeStatsDataProvider< T >.
|
virtual |
Get the stride for the current mask (only called if hasMask() returns True).
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
Get the associated range(s) of the current dataset.
Only called if hasRanges() returns True;
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
Get the stride for the current data set.
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
Returns NULL; lattices do not have associated weights.
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
Does the current data set have associated range(s)?
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
returns False; lattices do not have associated weights.
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
|
virtual |
If the associated data set has ranges, are these include (return True) or exclude (return False) ranges?
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
void casacore::LatticeStatsDataProviderBase< T >::minMaxPos | ( | IPosition & | minpos, |
IPosition & | maxpos | ||
) | const |
get the positions of the min and max
|
virtual |
reset the provider to point to the beginning of the first data set it manages.
Implements casacore::StatsDataProvider< NumericTraits< T >::PrecisionType, const T *, const Bool * >.
Reimplemented in casacore::MaskedLatticeStatsDataProvider< T >, and casacore::LatticeStatsDataProvider< T >.
void casacore::LatticeStatsDataProviderBase< T >::setProgressMeter | ( | CountedPtr< LattStatsProgress > | pm | ) |
void casacore::LatticeStatsDataProviderBase< T >::setRanges | ( | const std::vector< std::pair< typename NumericTraits< T >::PrecisionType, typename NumericTraits< T >::PrecisionType > > & | ranges, |
Bool | isInclude | ||
) |
set the data ranges
|
private |
Definition at line 101 of file LatticeStatsDataProviderBase.h.
|
private |
Definition at line 101 of file LatticeStatsDataProviderBase.h.
|
private |
Definition at line 104 of file LatticeStatsDataProviderBase.h.
Referenced by casacore::LatticeStatsDataProviderBase< T >::_updateMaxPos().
|
private |
Definition at line 104 of file LatticeStatsDataProviderBase.h.
Referenced by casacore::LatticeStatsDataProviderBase< T >::_updateMinPos().
|
private |
Definition at line 103 of file LatticeStatsDataProviderBase.h.
|
private |
Definition at line 102 of file LatticeStatsDataProviderBase.h.