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,
171 #ifndef CASACORE_NO_AUTO_TEMPLATES 172 #include <casacore/lattices/LatticeMath/StatsTiledCollapser.tcc> A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
virtual void init(uInt nOutPixelsPerCollapse)
Initialize process, making some checks.
CountedPtr< Block< U > > _mean
CountedPtr< Block< U > > _sumSq
virtual void initAccumulator(uInt n1, uInt n3)
Initialiaze the accumulator.
CountedPtr< Block< U > > _sum
Accumulators for sum, sum squared, number of points minimum, and maximum.
CountedPtr< Block< T > > _min
void minMaxPos(IPosition &minPos, IPosition &maxPos)
Find the location of the minimum and maximum data values in the input lattice.
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()
CountedPtr< Block< U > > _nvariance
Referenced counted pointer for constant data.
Abstract base class to collapse chunks for LatticeApply.
Generate statistics, tile by tile, from a masked lattice NOTE this version was moved from LatticeStat...
CountedPtr< Block< U > > _variance
bool Bool
Define the standard types used by Casacore.
CountedPtr< Block< T > > _max
virtual void endAccumulator(Array< U > &result, Array< Bool > &resultMask, const IPosition &shape)
End the accumulation process and return the result arrays.
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.
virtual Bool canHandleNullMask() const
Can handle null mask.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
template <class T, class U> class vector;
CountedPtr< Block< Bool > > _initMinMax
this file contains all the compiler specific defines
CountedPtr< Block< U > > _npts