casa
$Rev:20696$
|
Abstract Derived Data Mapper class. More...
#include <DDMapper.h>
Public Member Functions | |
DDMapper () | |
virtual | ~DDMapper () |
virtual Bool | reset (const Vector< Int > &corr)=0 |
Given a vector of correlation types, recomputes internal indices. | |
virtual Float | map (const Cube< Complex > &vis, uInt ich, uInt irow) const =0 |
Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value. | |
uShort | corrMask () const |
Returns the "mask" of correlations which are used by this mapper. | |
Bool | masked (uInt icorr) const |
Returns True if given correlations is masked. | |
Bool | isValid () |
Tells if mapper is valid. | |
Protected Attributes | |
Bool | valid |
uShort | corrmask |
Abstract Derived Data Mapper class.
Internal
The DDMapper class defines an interface for mapping complex visibilities into Float derived values. DDMappers are used by several flagging agents.
A lot of algorithms are expressed in terms of some real value derived from a set of visibilities (i.e., |XX|, |XX|-|YY|, etc.). The DDMapper hierarchy provides a uniform interface for deriving such values.
Definition at line 62 of file DDMapper.h.
casa::DDMapper::DDMapper | ( | ) | [inline] |
Definition at line 69 of file DDMapper.h.
References casa::False, and valid.
virtual casa::DDMapper::~DDMapper | ( | ) | [inline, virtual] |
Definition at line 70 of file DDMapper.h.
uShort casa::DDMapper::corrMask | ( | ) | const [inline] |
Returns the "mask" of correlations which are used by this mapper.
by this mapper. Bit "i" is set if corr. "i" is used.
Definition at line 82 of file DDMapper.h.
References corrmask.
Bool casa::DDMapper::isValid | ( | ) | [inline] |
virtual Float casa::DDMapper::map | ( | const Cube< Complex > & | vis, |
uInt | ich, | ||
uInt | irow | ||
) | const [pure virtual] |
Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value.
Implemented in casa::DDDiffFunc, casa::DDFuncDiff, casa::DDFuncSum, casa::DDSumFunc, casa::DDFunc, and casa::DDDummy.
Referenced by casa::RFDataMapper::mapValue().
Bool casa::DDMapper::masked | ( | uInt | icorr | ) | const [inline] |
Returns True if given correlations is masked.
Definition at line 85 of file DDMapper.h.
References corrmask.
virtual Bool casa::DDMapper::reset | ( | const Vector< Int > & | corr | ) | [pure virtual] |
Given a vector of correlation types, recomputes internal indices.
returns True if all indices were found successfully.
Implemented in casa::DDSumFunc, casa::DDFunc, and casa::DDDummy.
uShort casa::DDMapper::corrmask [protected] |
Definition at line 66 of file DDMapper.h.
Referenced by corrMask(), and masked().
Bool casa::DDMapper::valid [protected] |
Definition at line 65 of file DDMapper.h.
Referenced by DDMapper(), and isValid().