casa
$Rev:20696$
|
VisCal: Model multiplicative errors for the VisEquation . More...
#include <UVMod.h>
Public Member Functions | |
UVMod (VisSet &vs) | |
virtual | ~UVMod () |
Int & | nPar () |
void | setModel (const ComponentType::Shape type, const Vector< Double > inpar, const Vector< Bool > invary) |
Bool | modelfit (const Int &maxiter, const String file) |
Vector< Double > & | par () |
Protected Member Functions | |
void | initSolve () |
Initial solving data. | |
virtual void | residual () |
Calculate residuals (incl. | |
void | chiSquare () |
void | accGradHess () |
Internal solving methods. | |
void | solveGradHess (const Bool &doCovar=False) |
Bool | updPar () |
Bool | setCompPar () |
void | printPar (const Int &iter) |
VisSet & | vs () |
Access to VisSet. | |
ComponentList & | cl () |
Access to ComponentList. | |
SkyComponent & | skycomp (const uInt id) |
Access to SkyComponents by id. | |
VisBuffer & | svb () |
Access to current VisBuffer. | |
Int & | fitfld () |
Access to fieldId we are fitting for. | |
MDirection & | pc () |
Cube< DComplex > & | R () |
Accessors to current svb's (differentiated) Residuals. | |
Array< DComplex > & | dR () |
Double & | chiSq () |
Access to chi2. | |
Double & | lastChiSq () |
Double & | sumWt () |
Int & | nWt () |
Vector< Bool > & | polWt () |
Double & | lamb () |
Access to parameters, & grad,hess,dp. | |
Vector< Double > & | lastPar () |
Vector< Double > & | grad () |
Vector< Double > & | lastGrad () |
Matrix< Double > & | hess () |
Matrix< Double > & | lastHess () |
Vector< Double > & | dpar () |
Vector< Bool > & | vary () |
Int & | nVary () |
Private Attributes | |
VisSet * | vs_ |
Associated VisSet (LOCAL) | |
ComponentList * | cl_ |
ComponentList (LOCAL) | |
VisBuffer * | svb_ |
VisBuffer (from outside) | |
Int | fitfld_ |
FieldId in fit. | |
MDirection | pc_ |
Phase center w.r.t. | |
Int | nPar_ |
Total Number of parameters. | |
Cube< DComplex > | R_ |
Residual/Differentiation caches. | |
Array< DComplex > | dR_ |
Double | chiSq_ |
Chi2, sum wts. | |
Double | lastChiSq_ |
Double | sumWt_ |
Int | nWt_ |
Vector< Bool > | polWt_ |
Vector< Double > | par_ |
Parameter storage. | |
Vector< Double > | lastPar_ |
Double | lamb_ |
Gradient, Hessian, par update. | |
Vector< Double > | grad_ |
Vector< Double > | lastGrad_ |
Matrix< Double > | hess_ |
Matrix< Double > | lastHess_ |
Vector< Double > | dpar_ |
Vector< Bool > | vary_ |
Int | nVary_ |
VisCal: Model multiplicative errors for the VisEquation .
Public interface
VisCal describes an interface for multiplicative errors to be used in the VisEquation . It is an Abstract Base Class: most methods must be defined in derived classes.
See VisEquation for definition of the Visibility Measurement Equation.
The following examples illustrate how an VisCal can be used:
// Read the VisSet from disk VisSet vs("3c84.MS"); VisEquation ve(vs); // Make an VisCal PhaseScreenVisCal coac(vs); // Correct the visset ve.correct();
The properties of an multiplicative component must be described for the VisEquation .
casa::UVMod::UVMod | ( | VisSet & | vs | ) |
virtual casa::UVMod::~UVMod | ( | ) | [virtual] |
void casa::UVMod::accGradHess | ( | ) | [protected] |
Internal solving methods.
Double& casa::UVMod::chiSq | ( | ) | [inline, protected] |
void casa::UVMod::chiSquare | ( | ) | [protected] |
ComponentList& casa::UVMod::cl | ( | ) | [inline, protected] |
Vector<Double>& casa::UVMod::dpar | ( | ) | [inline, protected] |
Array<DComplex>& casa::UVMod::dR | ( | ) | [inline, protected] |
Int& casa::UVMod::fitfld | ( | ) | [inline, protected] |
Vector<Double>& casa::UVMod::grad | ( | ) | [inline, protected] |
Matrix<Double>& casa::UVMod::hess | ( | ) | [inline, protected] |
void casa::UVMod::initSolve | ( | ) | [protected] |
Initial solving data.
Double& casa::UVMod::lamb | ( | ) | [inline, protected] |
Double& casa::UVMod::lastChiSq | ( | ) | [inline, protected] |
Definition at line 166 of file UVMod.h.
References lastChiSq_.
Vector<Double>& casa::UVMod::lastGrad | ( | ) | [inline, protected] |
Matrix<Double>& casa::UVMod::lastHess | ( | ) | [inline, protected] |
Vector<Double>& casa::UVMod::lastPar | ( | ) | [inline, protected] |
Bool casa::UVMod::modelfit | ( | const Int & | maxiter, |
const String | file | ||
) |
Int& casa::UVMod::nPar | ( | ) | [inline] |
Int& casa::UVMod::nVary | ( | ) | [inline, protected] |
Int& casa::UVMod::nWt | ( | ) | [inline, protected] |
Vector<Double>& casa::UVMod::par | ( | ) | [inline] |
MDirection& casa::UVMod::pc | ( | ) | [inline, protected] |
Vector<Bool>& casa::UVMod::polWt | ( | ) | [inline, protected] |
void casa::UVMod::printPar | ( | const Int & | iter | ) | [protected] |
Cube<DComplex>& casa::UVMod::R | ( | ) | [inline, protected] |
virtual void casa::UVMod::residual | ( | ) | [protected, virtual] |
Calculate residuals (incl.
diff'd) and chi2
Bool casa::UVMod::setCompPar | ( | ) | [protected] |
void casa::UVMod::setModel | ( | const ComponentType::Shape | type, |
const Vector< Double > | inpar, | ||
const Vector< Bool > | invary | ||
) |
SkyComponent& casa::UVMod::skycomp | ( | const uInt | id | ) | [inline, protected] |
Access to SkyComponents by id.
Definition at line 151 of file UVMod.h.
References cl_, and casa::ComponentList::component().
void casa::UVMod::solveGradHess | ( | const Bool & | doCovar = False | ) | [protected] |
Double& casa::UVMod::sumWt | ( | ) | [inline, protected] |
VisBuffer& casa::UVMod::svb | ( | ) | [inline, protected] |
Bool casa::UVMod::updPar | ( | ) | [protected] |
Vector<Bool>& casa::UVMod::vary | ( | ) | [inline, protected] |
VisSet& casa::UVMod::vs | ( | ) | [inline, protected] |
Double casa::UVMod::chiSq_ [private] |
ComponentList* casa::UVMod::cl_ [private] |
Vector<Double> casa::UVMod::dpar_ [private] |
Array<DComplex> casa::UVMod::dR_ [private] |
Int casa::UVMod::fitfld_ [private] |
Vector<Double> casa::UVMod::grad_ [private] |
Matrix<Double> casa::UVMod::hess_ [private] |
Double casa::UVMod::lamb_ [private] |
Double casa::UVMod::lastChiSq_ [private] |
Definition at line 209 of file UVMod.h.
Referenced by lastChiSq().
Vector<Double> casa::UVMod::lastGrad_ [private] |
Definition at line 222 of file UVMod.h.
Referenced by lastGrad().
Matrix<Double> casa::UVMod::lastHess_ [private] |
Definition at line 224 of file UVMod.h.
Referenced by lastHess().
Vector<Double> casa::UVMod::lastPar_ [private] |
Int casa::UVMod::nPar_ [private] |
Int casa::UVMod::nVary_ [private] |
Int casa::UVMod::nWt_ [private] |
Vector<Double> casa::UVMod::par_ [private] |
MDirection casa::UVMod::pc_ [private] |
Vector<Bool> casa::UVMod::polWt_ [private] |
Cube<DComplex> casa::UVMod::R_ [private] |
Double casa::UVMod::sumWt_ [private] |
VisBuffer* casa::UVMod::svb_ [private] |
Vector<Bool> casa::UVMod::vary_ [private] |
VisSet* casa::UVMod::vs_ [private] |