casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
casa::UVMod Class Reference

VisCal: Model multiplicative errors for the VisEquation . More...

#include <UVMod.h>

List of all members.

Public Member Functions

 UVMod (VisSet &vs)
virtual ~UVMod ()
IntnPar ()
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)
VisSetvs ()
 Access to VisSet.
ComponentListcl ()
 Access to ComponentList.
SkyComponentskycomp (const uInt id)
 Access to SkyComponents by id.
VisBuffersvb ()
 Access to current VisBuffer.
Intfitfld ()
 Access to fieldId we are fitting for.
MDirectionpc ()
Cube< DComplex > & R ()
 Accessors to current svb's (differentiated) Residuals.
Array< DComplex > & dR ()
DoublechiSq ()
 Access to chi2.
DoublelastChiSq ()
DoublesumWt ()
IntnWt ()
Vector< Bool > & polWt ()
Doublelamb ()
 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 ()
IntnVary ()

Private Attributes

VisSetvs_
 Associated VisSet (LOCAL)
ComponentListcl_
 ComponentList (LOCAL)
VisBuffersvb_
 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< BoolpolWt_
Vector< Doublepar_
 Parameter storage.
Vector< DoublelastPar_
Double lamb_
 Gradient, Hessian, par update.
Vector< Doublegrad_
Vector< DoublelastGrad_
Matrix< Doublehess_
Matrix< DoublelastHess_
Vector< Doubledpar_
Vector< Boolvary_
Int nVary_

Detailed Description

VisCal: Model multiplicative errors for the VisEquation .

Intended use:

Public interface

Prerequisite

Etymology

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.

Synopsis

See VisEquation for definition of the Visibility Measurement Equation.

The following examples illustrate how an VisCal can be used:

Example

         // Read the VisSet from disk
         VisSet vs("3c84.MS");
   
         VisEquation ve(vs);
   
         // Make an VisCal
         PhaseScreenVisCal coac(vs);
   
         // Correct the visset
         ve.correct();

Motivation

The properties of an multiplicative component must be described for the VisEquation .

VisCal

Definition at line 111 of file UVMod.h.


Constructor & Destructor Documentation

virtual casa::UVMod::~UVMod ( ) [virtual]

Member Function Documentation

void casa::UVMod::accGradHess ( ) [protected]

Internal solving methods.

Double& casa::UVMod::chiSq ( ) [inline, protected]

Access to chi2.

Definition at line 165 of file UVMod.h.

References chiSq_.

void casa::UVMod::chiSquare ( ) [protected]
ComponentList& casa::UVMod::cl ( ) [inline, protected]

Access to ComponentList.

Definition at line 148 of file UVMod.h.

References cl_.

Vector<Double>& casa::UVMod::dpar ( ) [inline, protected]

Definition at line 178 of file UVMod.h.

References dpar_.

Array<DComplex>& casa::UVMod::dR ( ) [inline, protected]

Definition at line 162 of file UVMod.h.

References dR_.

Int& casa::UVMod::fitfld ( ) [inline, protected]

Access to fieldId we are fitting for.

Definition at line 157 of file UVMod.h.

References fitfld_.

Vector<Double>& casa::UVMod::grad ( ) [inline, protected]

Definition at line 174 of file UVMod.h.

References grad_.

Matrix<Double>& casa::UVMod::hess ( ) [inline, protected]

Definition at line 176 of file UVMod.h.

References hess_.

void casa::UVMod::initSolve ( ) [protected]

Initial solving data.

Double& casa::UVMod::lamb ( ) [inline, protected]

Access to parameters, & grad,hess,dp.

Definition at line 172 of file UVMod.h.

References lamb_.

Double& casa::UVMod::lastChiSq ( ) [inline, protected]

Definition at line 166 of file UVMod.h.

References lastChiSq_.

Vector<Double>& casa::UVMod::lastGrad ( ) [inline, protected]

Definition at line 175 of file UVMod.h.

References lastGrad_.

Matrix<Double>& casa::UVMod::lastHess ( ) [inline, protected]

Definition at line 177 of file UVMod.h.

References lastHess_.

Vector<Double>& casa::UVMod::lastPar ( ) [inline, protected]

Definition at line 173 of file UVMod.h.

References lastPar_.

Bool casa::UVMod::modelfit ( const Int maxiter,
const String  file 
)
Int& casa::UVMod::nPar ( ) [inline]

Definition at line 118 of file UVMod.h.

References nPar_.

Int& casa::UVMod::nVary ( ) [inline, protected]

Definition at line 180 of file UVMod.h.

Int& casa::UVMod::nWt ( ) [inline, protected]

Definition at line 168 of file UVMod.h.

References nWt_.

Vector<Double>& casa::UVMod::par ( ) [inline]

Definition at line 126 of file UVMod.h.

References par_.

MDirection& casa::UVMod::pc ( ) [inline, protected]

Definition at line 158 of file UVMod.h.

References pc_.

Vector<Bool>& casa::UVMod::polWt ( ) [inline, protected]

Definition at line 169 of file UVMod.h.

References polWt_.

void casa::UVMod::printPar ( const Int iter) [protected]
Cube<DComplex>& casa::UVMod::R ( ) [inline, protected]

Accessors to current svb's (differentiated) Residuals.

Definition at line 161 of file UVMod.h.

References R_.

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]

Definition at line 167 of file UVMod.h.

References sumWt_.

VisBuffer& casa::UVMod::svb ( ) [inline, protected]

Access to current VisBuffer.

Definition at line 154 of file UVMod.h.

References svb_.

Bool casa::UVMod::updPar ( ) [protected]
Vector<Bool>& casa::UVMod::vary ( ) [inline, protected]

Definition at line 179 of file UVMod.h.

References vary_.

VisSet& casa::UVMod::vs ( ) [inline, protected]

Access to VisSet.

Definition at line 145 of file UVMod.h.

References vs_.


Member Data Documentation

Chi2, sum wts.

Definition at line 208 of file UVMod.h.

Referenced by chiSq().

ComponentList (LOCAL)

Definition at line 189 of file UVMod.h.

Referenced by cl(), and skycomp().

Definition at line 225 of file UVMod.h.

Referenced by dpar().

Array<DComplex> casa::UVMod::dR_ [private]

Definition at line 205 of file UVMod.h.

Referenced by dR().

FieldId in fit.

Definition at line 195 of file UVMod.h.

Referenced by fitfld().

Definition at line 221 of file UVMod.h.

Referenced by grad().

Definition at line 223 of file UVMod.h.

Referenced by hess().

Gradient, Hessian, par update.

Definition at line 220 of file UVMod.h.

Referenced by lamb().

Definition at line 209 of file UVMod.h.

Referenced by lastChiSq().

Definition at line 222 of file UVMod.h.

Referenced by lastGrad().

Definition at line 224 of file UVMod.h.

Referenced by lastHess().

Definition at line 217 of file UVMod.h.

Referenced by lastPar().

Total Number of parameters.

Definition at line 201 of file UVMod.h.

Referenced by nPar().

Definition at line 227 of file UVMod.h.

Definition at line 211 of file UVMod.h.

Referenced by nWt().

Parameter storage.

Definition at line 216 of file UVMod.h.

Referenced by par().

Phase center w.r.t.

which modelfitting is done

Definition at line 198 of file UVMod.h.

Referenced by pc().

Definition at line 213 of file UVMod.h.

Referenced by polWt().

Cube<DComplex> casa::UVMod::R_ [private]

Residual/Differentiation caches.

Definition at line 204 of file UVMod.h.

Referenced by R().

Definition at line 210 of file UVMod.h.

Referenced by sumWt().

VisBuffer (from outside)

Definition at line 192 of file UVMod.h.

Referenced by svb().

Definition at line 226 of file UVMod.h.

Referenced by vary().

Associated VisSet (LOCAL)

Definition at line 180 of file UVMod.h.

Referenced by vs().


The documentation for this class was generated from the following file: