#include <VisEquation.h>
Public Member Functions | |
VisEquation () | |
Contructor. | |
VisEquation (const VisEquation &other) | |
Copy ctor. | |
virtual | ~VisEquation () |
Destructor. | |
VisEquation & | operator= (const VisEquation &other) |
Assignment. | |
void | setapply (PtrBlock< VisCal * > &vcin) |
Arrange for apply of a VisCal list (i.e., sort them into the correct order). | |
void | setsolve (SolvableVisCal &svc) |
Arrange for solve of a single SolvableVisCal. | |
void | setPivot (VisCal::Type pivot) |
Arrange a pivot point for evaluating the equation in collapseForSim. | |
VisCal::Type | pivot () const |
Where is the pivot? | |
void | setModel (const Vector< Float > &stokes) |
Arrange the model to use for calibration. | |
void | unSetModel () |
Int | nTerms () const |
How many terms are arranged for apply? | |
Vector< VisCal::Type > | listTypes () const |
List the terms. | |
Bool | spwOK (const Int &spw) |
Report if spw has solutions available from all applied tables. | |
void | correct (VisBuffer &vb, Bool trial=False) |
Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals. | |
void | correct2 (vi::VisBuffer2 &vb, Bool trial=False, Bool doWtSp=False) |
Record | actionRec () |
Report flag-by-cal statistics. | |
void | corrupt (VisBuffer &vb) |
Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals. | |
void | collapse (VisBuffer &vb) |
Correct/Corrupt in place the OBSERVED/MODEL visibilities in a VisBuffer with the apply-able VisCals on either side of the SolvableVisCal. | |
void | collapse2 (vi::VisBuffer2 &vb) |
void | collapseForSim (VisBuffer &vb) |
This collapse avoids I/O (assumes the vb data/model are ready), and uses a generic pivot (see setPivot) rather than the svc void collapseForSim(VisBuffer& vb);. | |
void | residuals (VisBuffer &vb, Cube< Complex > &R, const Int chan=-1) |
Calculate residuals (optionally for specific chan). | |
void | diffResiduals (CalVisBuffer &cvb) |
Calculate residuals and differentiated residuals (optionally for specific chan). | |
void | diffResiduals (VisBuffer &vb, Cube< Complex > &R, Array< Complex > &dR, Matrix< Bool > &Rflg) |
void | diffResiduals (VisBuffer &R, VisBuffer &dR0, VisBuffer &dR1, Matrix< Bool > &Rflg) |
void | differentiate (SolveDataBuffer &sdb) |
SolveDataBuffer version. | |
void | state () |
Report the VisEq's state. | |
void | setPrtlev (const Int &prtlev) |
Set the print level. | |
Protected Member Functions | |
Bool | ok () |
PtrBlock< VisCal * > & | vc () |
Access to the PB of apply terms. | |
SolvableVisCal & | svc () |
Access to SVC. | |
void | setFreqDep () |
Detect freq dependence along the Vis Equation. | |
void | divideCorrByModel (vi::VisBuffer2 &vb) |
Divide corr data by model. | |
Private Member Functions | |
Int & | prtlev () |
Diagnostic print level access. | |
Private Attributes | |
PtrBlock< VisCal * > * | vcpb_ |
A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities). | |
Int | napp_ |
Number of apply VisCals in vc_. | |
Int | lfd_ |
Frequency dependence indices. | |
Int | rfd_ |
Bool | freqAveOK_ |
Trap for frequency averaging in collapse. | |
SolvableVisCal * | svc_ |
VisCal with solving interface (No ownership responsibilities). | |
VisCal::Type | pivot_ |
The pivot point used by collapse2. | |
Bool | useInternalModel_ |
An internal (global) point source model. | |
Vector< Float > | stokesModel_ |
Int | prtlev_ |
Diagnostic print level. |
Definition at line 92 of file VisEquation.h.
casa::VisEquation::VisEquation | ( | ) |
Contructor.
casa::VisEquation::VisEquation | ( | const VisEquation & | other | ) |
Copy ctor.
virtual casa::VisEquation::~VisEquation | ( | ) | [virtual] |
Destructor.
Record casa::VisEquation::actionRec | ( | ) |
Report flag-by-cal statistics.
void casa::VisEquation::collapse | ( | VisBuffer & | vb | ) |
Correct/Corrupt in place the OBSERVED/MODEL visibilities in a VisBuffer with the apply-able VisCals on either side of the SolvableVisCal.
void casa::VisEquation::collapse2 | ( | vi::VisBuffer2 & | vb | ) |
void casa::VisEquation::collapseForSim | ( | VisBuffer & | vb | ) |
This collapse avoids I/O (assumes the vb data/model are ready), and uses a generic pivot (see setPivot) rather than the svc void collapseForSim(VisBuffer& vb);.
void casa::VisEquation::correct | ( | VisBuffer & | vb, | |
Bool | trial = False | |||
) |
Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals.
void casa::VisEquation::correct2 | ( | vi::VisBuffer2 & | vb, | |
Bool | trial = False , |
|||
Bool | doWtSp = False | |||
) |
void casa::VisEquation::corrupt | ( | VisBuffer & | vb | ) |
Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals.
void casa::VisEquation::differentiate | ( | SolveDataBuffer & | sdb | ) |
SolveDataBuffer version.
void casa::VisEquation::diffResiduals | ( | VisBuffer & | R, | |
VisBuffer & | dR0, | |||
VisBuffer & | dR1, | |||
Matrix< Bool > & | Rflg | |||
) |
void casa::VisEquation::diffResiduals | ( | VisBuffer & | vb, | |
Cube< Complex > & | R, | |||
Array< Complex > & | dR, | |||
Matrix< Bool > & | Rflg | |||
) |
void casa::VisEquation::diffResiduals | ( | CalVisBuffer & | cvb | ) |
Calculate residuals and differentiated residuals (optionally for specific chan).
void casa::VisEquation::divideCorrByModel | ( | vi::VisBuffer2 & | vb | ) | [protected] |
Divide corr data by model.
Vector<VisCal::Type> casa::VisEquation::listTypes | ( | ) | const |
List the terms.
Int casa::VisEquation::nTerms | ( | ) | const [inline] |
How many terms are arranged for apply?
Definition at line 124 of file VisEquation.h.
References napp_.
Bool casa::VisEquation::ok | ( | ) | [protected] |
VisEquation& casa::VisEquation::operator= | ( | const VisEquation & | other | ) |
Assignment.
VisCal::Type casa::VisEquation::pivot | ( | ) | const [inline] |
Int& casa::VisEquation::prtlev | ( | ) | [inline, private] |
Diagnostic print level access.
Definition at line 202 of file VisEquation.h.
void casa::VisEquation::residuals | ( | VisBuffer & | vb, | |
Cube< Complex > & | R, | |||
const Int | chan = -1 | |||
) |
Calculate residuals (optionally for specific chan).
void casa::VisEquation::setapply | ( | PtrBlock< VisCal * > & | vcin | ) |
Arrange for apply of a VisCal list (i.e., sort them into the correct order).
void casa::VisEquation::setFreqDep | ( | ) | [protected] |
Detect freq dependence along the Vis Equation.
void casa::VisEquation::setModel | ( | const Vector< Float > & | stokes | ) |
Arrange the model to use for calibration.
void casa::VisEquation::setPivot | ( | VisCal::Type | pivot | ) |
Arrange a pivot point for evaluating the equation in collapseForSim.
void casa::VisEquation::setPrtlev | ( | const Int & | prtlev | ) | [inline] |
void casa::VisEquation::setsolve | ( | SolvableVisCal & | svc | ) |
Arrange for solve of a single SolvableVisCal.
Bool casa::VisEquation::spwOK | ( | const Int & | spw | ) |
Report if spw has solutions available from all applied tables.
void casa::VisEquation::state | ( | ) |
Report the VisEq's state.
SolvableVisCal& casa::VisEquation::svc | ( | ) | [inline, protected] |
void casa::VisEquation::unSetModel | ( | ) | [inline] |
Definition at line 121 of file VisEquation.h.
References casacore::False, and useInternalModel_.
PtrBlock<VisCal*>& casa::VisEquation::vc | ( | ) | [inline, protected] |
Bool casa::VisEquation::freqAveOK_ [private] |
Trap for frequency averaging in collapse.
Definition at line 216 of file VisEquation.h.
Int casa::VisEquation::lfd_ [private] |
Frequency dependence indices.
Definition at line 212 of file VisEquation.h.
Int casa::VisEquation::napp_ [private] |
Number of apply VisCals in vc_.
Definition at line 209 of file VisEquation.h.
Referenced by nTerms().
VisCal::Type casa::VisEquation::pivot_ [private] |
The pivot point used by collapse2.
Definition at line 223 of file VisEquation.h.
Referenced by pivot().
Int casa::VisEquation::prtlev_ [private] |
Int casa::VisEquation::rfd_ [private] |
Definition at line 213 of file VisEquation.h.
Vector<Float> casa::VisEquation::stokesModel_ [private] |
Definition at line 227 of file VisEquation.h.
SolvableVisCal* casa::VisEquation::svc_ [private] |
VisCal with solving interface (No ownership responsibilities).
Definition at line 220 of file VisEquation.h.
Referenced by svc().
Bool casa::VisEquation::useInternalModel_ [private] |
An internal (global) point source model.
Definition at line 226 of file VisEquation.h.
Referenced by unSetModel().
PtrBlock<VisCal*>* casa::VisEquation::vcpb_ [private] |
A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities).
Definition at line 202 of file VisEquation.h.
Referenced by vc().