28 #ifndef CASA_MASKARRMATH_2_H
29 #define CASA_MASKARRMATH_2_H
386 template<
class T> T pvariance(
const MaskedArray<T> &a,
size_t ddof=0);
393 template<
class T> T pstddev(
const MaskedArray<T> &a,
size_t ddof=0);
435 {
return madfm (a, sorted, (a.
nelements() <= 100)); }
521 template <
typename T,
typename FuncType>
524 const FuncType& funcObj);
550 template <
typename T,
typename FuncType>
553 const FuncType& funcObj,
559 #include "MaskArrMath.tcc"
A Vector of integers, for indexing into Array<T> objects.
LatticeExprNode log10(const LatticeExprNode &expr)
T operator()(const MaskedArray< T > &arr) const
T operator()(const MaskedArray< T > &arr) const
LatticeExprNode log(const LatticeExprNode &expr)
LatticeExprNode median(const LatticeExprNode &expr)
T operator()(const MaskedArray< T > &arr) const
LatticeExprNode operator/(const LatticeExprNode &left, const LatticeExprNode &right)
T median(const MaskedArray< T > &a, bool sorted=false)
The median of "a" is a(n/2).
T product(const TableVector< T > &tv)
LatticeExprNode imag(const LatticeExprNode &expr)
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)
size_t nelements() const
The number of elements of this masked array.
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
MaskedMadfmFunc(bool sorted=false, bool takeEvenMean=true)
LatticeExprNode exp(const LatticeExprNode &expr)
T operator()(const MaskedArray< T > &arr) const
TableExprNode marray(const TableExprNode &array, const TableExprNode &mask)
Form a masked array.
T madfm(const MaskedArray< T > &a, bool sorted=false)
The median absolute deviation from the median.
LatticeExprNode floor(const LatticeExprNode &expr)
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 cos(const LatticeExprNode &expr)
float operator()(const MaskedArray< float > &arr) const
Class for masking an Array for operations on that Array.
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)
LatticeExprNode atan(const LatticeExprNode &expr)
MaskedArray< T > real(const MaskedArray< std::complex< T >> &carray)
Extracts the real part of a complex array into an array of floats.
void minMax(T &min, T &max, const TableVector< T > &tv)
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)
LatticeExprNode atan2(const LatticeExprNode &left, const LatticeExprNode &right)
Numerical 2-argument functions.
LatticeExprNode operator+(const LatticeExprNode &expr)
Global functions operating on a LatticeExprNode.
T operator()(const MaskedArray< T > &arr) const
T operator()(const MaskedArray< T > &arr) const
LatticeExprNode fmod(const LatticeExprNode &left, const LatticeExprNode &right)
void indgen(TableVector< T > &tv, T start, T inc)
LatticeExprNode asin(const LatticeExprNode &expr)
MaskedArray< T > imag(const MaskedArray< std::complex< T >> &carray)
Extracts the imaginary part of a complex array into an array of floats.
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)
T operator()(const MaskedArray< T > &arr) const
LatticeExprNode operator-(const LatticeExprNode &expr)
LatticeExprNode variance(const LatticeExprNode &expr)
LatticeExprNode ceil(const LatticeExprNode &expr)
LatticeExprNode pow(const LatticeExprNode &left, const LatticeExprNode &right)
MVBaseline operator*(const RotMatrix &left, const MVBaseline &right)
Rotate a Baseline vector with rotation matrix and other multiplications.
LatticeExprNode cosh(const LatticeExprNode &expr)
LatticeExprNode real(const LatticeExprNode &expr)
LatticeExprNode sin(const LatticeExprNode &expr)
Numerical 1-argument functions.
T operator()(const MaskedArray< T > &arr) const