Go to the documentation of this file.
27 #ifndef LATTICES_STATSTILEDCOLLAPSER_H
28 #define LATTICES_STATSTILEDCOLLAPSER_H
32 #include <casacore/casa/aips.h>
112 template <
class T,
class U=T>
127 virtual void init (
uInt nOutPixelsPerCollapse);
135 const T* inData,
const Bool* inMask,
182 #ifndef CASACORE_NO_AUTO_TEMPLATES
183 #include <casacore/lattices/LatticeMath/StatsTiledCollapser.tcc>
Abstract base class to collapse chunks for LatticeApply.
A Vector of integers, for indexing into Array<T> objects.
CountedPtr< Block< U > > _sigma
std::complex< Double > DComplex
virtual Bool canHandleNullMask() const
Can handle null mask.
virtual void init(uInt nOutPixelsPerCollapse)
Initialize process, making some checks.
Referenced counted pointer for constant data.
CountedPtr< Block< Double > > _npts
Accumulators for sum, sum squared, number of points minimum, and maximum.
CountedPtr< Block< U > > _nvariance
virtual ~StatsTiledCollapser()
virtual void endAccumulator(Array< U > &result, Array< Bool > &resultMask, const IPosition &shape)
End the accumulation process and return the result arrays.
void _convertNPts(Double *&nptsPtr, CountedPtr< Block< Double > > npts, CountedPtr< Block< DComplex > > nptsComplex) const
virtual void initAccumulator(uInt64 n1, uInt64 n3)
Initialiaze the accumulator.
CountedPtr< Block< U > > _sumSq
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
CountedPtr< Block< T > > _max
void minMaxPos(IPosition &minPos, IPosition &maxPos)
Find the location of the minimum and maximum data values in the input lattice.
CountedPtr< Block< U > > _mean
this file contains all the compiler specific defines
CountedPtr< Block< U > > _sum
Generate statistics, tile by tile, from a masked lattice NOTE this version was moved from LatticeStat...
virtual void process(uInt accumIndex1, uInt accumIndex3, const T *inData, const Bool *inMask, uInt dataIncr, uInt maskIncr, uInt nrval, const IPosition &startPos, const IPosition &shape)
Process the data in the current chunk.
CountedPtr< Block< U > > _variance
template <class T, class U> class vector;
bool Bool
Define the standard types used by Casacore.
CountedPtr< Block< T > > _min
A 1-D Specialization of the Array class.
StatsTiledCollapser(const Vector< T > &pixelRange, Bool noInclude, Bool noExclude, Bool fixedMinMax)
Constructor provides pixel selection range and whether that range is an inclusion or exclusion range.
unsigned long long uInt64
CountedPtr< Block< Bool > > _initMinMax