27 #ifndef LATTICES_STATSTILEDCOLLAPSER_H
28 #define LATTICES_STATSTILEDCOLLAPSER_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>
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
CountedPtr< Block< U > > _sum
virtual Bool canHandleNullMask() const
Can handle null mask.
unsigned long long uInt64
CountedPtr< Block< Double > > _npts
Accumulators for sum, sum squared, number of points minimum, and maximum.
void _convertNPts(Double *&nptsPtr, CountedPtr< Block< Double > > npts, CountedPtr< Block< DComplex > > nptsComplex) const
CountedPtr< Block< T > > _min
void minMaxPos(IPosition &minPos, IPosition &maxPos)
Find the location of the minimum and maximum data values in the input lattice.
CountedPtr< Block< U > > _sigma
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()
virtual void initAccumulator(uInt64 n1, uInt64 n3)
Initialiaze the accumulator.
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
std::complex< Double > DComplex
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.
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
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.