Static math functions for Lattices. More...
#include <LatticeMathUtil.h>
Static Public Member Functions | |
template<class T > | |
static void | collapse (Array< T > &data, const IPosition &axes, const MaskedLattice< T > &in, Bool dropDegenerateAxes) |
Collapse the specified axes by averaging and recover the pixel values. | |
template<class T > | |
static void | collapse (Array< T > &data, Array< Bool > &mask, const IPosition &axes, const MaskedLattice< T > &lat, Bool dropDegenerateAxes, Bool getPixels=True, Bool getMask=True, const LatticeStatsBase::StatisticsTypes stat=LatticeStatsBase::MEAN) |
Collapse the specified axes by averaging and recover either/and the pixel values and mask. |
Static math functions for Lattices.
Public interface
Some static helper math functions for Lattices
Common functionality not appropriate for Lattice member functions
Definition at line 68 of file LatticeMathUtil.h.
static void casacore::LatticeMathUtil::collapse | ( | Array< T > & | data, | |
Array< Bool > & | mask, | |||
const IPosition & | axes, | |||
const MaskedLattice< T > & | lat, | |||
Bool | dropDegenerateAxes, | |||
Bool | getPixels = True , |
|||
Bool | getMask = True , |
|||
const LatticeStatsBase::StatisticsTypes | stat = LatticeStatsBase::MEAN | |||
) | [inline, static] |
Collapse the specified axes by averaging and recover either/and the pixel values and mask.
If axes is empty, then the data and mask just contains all of the lattice (i.e. no collapse) but dropDegenerateAxes is stil honoured
static void casacore::LatticeMathUtil::collapse | ( | Array< T > & | data, | |
const IPosition & | axes, | |||
const MaskedLattice< T > & | in, | |||
Bool | dropDegenerateAxes | |||
) | [inline, static] |
Collapse the specified axes by averaging and recover the pixel values.
If axes is empty, then the data just contains all of the lattice (i.e. no collapse), but dropDegenerateAxes is stil honoured