28 #ifndef CASA_MASKARRMATH_H 29 #define CASA_MASKARRMATH_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/BasicMath/Math.h> 34 #include <casacore/casa/Arrays/Array.h> 35 #include <casacore/casa/Arrays/MaskedArray.h> 36 #include <casacore/casa/Arrays/IPosition.h> 38 #include <casacore/casa/BasicSL/Complex.h> 428 {
return madfm (a, sorted, (a.
nelements() <= 100)); }
482 : itsSorted(sorted), itsTakeEvenMean(takeEvenMean) {}
484 {
return median(arr, itsSorted, itsTakeEvenMean); }
493 : itsSorted(sorted), itsTakeEvenMean(takeEvenMean) {}
495 {
return madfm(arr, itsSorted, itsTakeEvenMean); }
514 template <
typename T,
typename FuncType>
517 const FuncType& funcObj);
543 template <
typename T,
typename FuncType>
546 const FuncType& funcObj,
552 #ifndef CASACORE_NO_AUTO_TEMPLATES 553 #include <casacore/casa/Arrays/MaskArrMath.tcc> 554 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
LatticeExprNode log10(const LatticeExprNode &expr)
LatticeExprNode log(const LatticeExprNode &expr)
LatticeExprNode median(const LatticeExprNode &expr)
LatticeExprNode operator/(const LatticeExprNode &left, const LatticeExprNode &right)
T product(const TableVector< T > &tv)
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
LatticeExprNode sum(const LatticeExprNode &expr)
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
MaskedMadfmFunc(Bool sorted=False, Bool takeEvenMean=True)
uInt nelements() const
The number of elements of this masked array.
LatticeExprNode exp(const LatticeExprNode &expr)
LatticeExprNode floor(const LatticeExprNode &expr)
LatticeExprNode cos(const LatticeExprNode &expr)
Class for masking an Array for operations on that Array.
Float pow(Float f1, Float f2)
LatticeExprNode tanh(const LatticeExprNode &expr)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode avdev(const LatticeExprNode &expr)
LatticeExprNode abs(const LatticeExprNode &expr)
Numerical 1-argument functions which result in a real number regardless of input expression type...
T operator()(const MaskedArray< T > &arr) const
LatticeExprNode sqrt(const LatticeExprNode &expr)
LatticeExprNode tan(const LatticeExprNode &expr)
void indgen(TableVector< T > &tv, Int start, Int inc)
LatticeExprNode atan(const LatticeExprNode &expr)
bool Bool
Define the standard types used by Casacore.
void minMax(T &min, T &max, const TableVector< T > &tv)
T median(const MaskedArray< T > &a, Bool sorted=False)
The median of "a" is a(n/2).
MaskedArray< T > boxedArrayMath(const MaskedArray< T > &array, const IPosition &boxSize, const FuncType &funcObj)
Apply the given ArrayMath reduction function objects to each box in the array.
TableExprNode cube(const TableExprNode &node)
LatticeExprNode stddev(const LatticeExprNode &expr)
template <class T, class U> class vector;
LatticeExprNode atan2(const LatticeExprNode &left, const LatticeExprNode &right)
Numerical 2-argument functions.
LatticeExprNode operator+(const LatticeExprNode &expr)
Global functions operating on a LatticeExprNode.
LatticeExprNode fmod(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode asin(const LatticeExprNode &expr)
Float operator()(const MaskedArray< Float > &arr) const
LatticeExprNode mean(const LatticeExprNode &expr)
TableExprNode rms(const TableExprNode &array)
LatticeExprNode sinh(const LatticeExprNode &expr)
LatticeExprNode acos(const LatticeExprNode &expr)
TableExprNode square(const TableExprNode &node)
Array< T > slidingArrayMath(const MaskedArray< T > &array, const IPosition &halfBoxSize, const FuncType &funcObj, Bool fillEdge=True)
Apply for each element in the array the given ArrayMath reduction function object to the box around t...
LatticeExprNode operator-(const LatticeExprNode &expr)
T madfm(const MaskedArray< T > &a, Bool sorted=False)
The median absolute deviation from the median.
LatticeExprNode variance(const LatticeExprNode &expr)
LatticeExprNode ceil(const LatticeExprNode &expr)
this file contains all the compiler specific defines
MVBaseline operator*(const RotMatrix &left, const MVBaseline &right)
Rotate a Baseline vector with rotation matrix and other multiplications.
LatticeExprNode cosh(const LatticeExprNode &expr)
LatticeExprNode sin(const LatticeExprNode &expr)
Numerical 1-argument functions.