27 #ifndef LATTICES_STATSTILEDCOLLAPSER_H
28 #define LATTICES_STATSTILEDCOLLAPSER_H
32 #include <casacore/casa/aips.h>
112 template <
class T,
class U=T>
135 const T* inData,
const Bool* inMask,
182 #ifndef CASACORE_NO_AUTO_TEMPLATES
183 #include <casacore/lattices/LatticeMath/StatsTiledCollapser.tcc>
Referenced counted pointer for constant data.
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.
void _convertNPts(DComplex *&nptsPtr, CountedPtr< Block< Double > > npts, CountedPtr< Block< DComplex > > nptsComplex) const
virtual void init(uInt nOutPixelsPerCollapse)
Initialize process, making some checks.
CountedPtr< Block< T > > _max
CountedPtr< Block< U > > _sumSq
void _convertNPts(Double *&nptsPtr, CountedPtr< Block< Double > > npts, CountedPtr< Block< DComplex > > nptsComplex) const
CountedPtr< Block< U > > _sum
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.
virtual ~StatsTiledCollapser()
void minMaxPos(IPosition &minPos, IPosition &maxPos)
Find the location of the minimum and maximum data values in the input lattice.
virtual void initAccumulator(uInt64 n1, uInt64 n3)
Initialiaze the accumulator.
CountedPtr< Block< Double > > _npts
Accumulators for sum, sum squared, number of points minimum, and maximum.
CountedPtr< Block< Bool > > _initMinMax
virtual void endAccumulator(Array< U > &result, Array< Bool > &resultMask, const IPosition &shape)
End the accumulation process and return the result arrays.
CountedPtr< Block< U > > _nvariance
virtual Bool canHandleNullMask() const
Can handle null mask.
CountedPtr< Block< U > > _variance
CountedPtr< Block< U > > _sigma
CountedPtr< Block< U > > _mean
CountedPtr< Block< T > > _min
std::complex< Double > DComplex
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
bool Bool
Define the standard types used by Casacore.
unsigned long long uInt64