casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
casa::UVMod Class Reference

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

#include <UVMod.h>

Public Member Functions

 UVMod (VisSet &vs)
 
virtual ~UVMod ()
 
casacore::IntnPar ()
 
void setModel (const ComponentType::Shape type, const casacore::Vector< casacore::Double > inpar, const casacore::Vector< casacore::Bool > invary)
 
casacore::Bool modelfit (const casacore::Int &maxiter, const casacore::String file)
 
casacore::Vector
< casacore::Double > & 
par ()
 

Protected Member Functions

void initSolve ()
 Initial solving data. More...
 
virtual void residual ()
 Calculate residuals (incl. More...
 
void chiSquare ()
 
void accGradHess ()
 Internal solving methods. More...
 
void solveGradHess (const casacore::Bool &doCovar=false)
 
casacore::Bool updPar ()
 
casacore::Bool setCompPar ()
 
void printPar (const casacore::Int &iter)
 
VisSetvs ()
 Access to VisSet. More...
 
ComponentListcl ()
 Access to ComponentList. More...
 
SkyComponentskycomp (const casacore::uInt id)
 Access to SkyComponents by id. More...
 
VisBuffersvb ()
 Access to current VisBuffer. More...
 
casacore::Intfitfld ()
 Access to fieldId we are fitting for. More...
 
casacore::MDirectionpc ()
 
casacore::Cube
< casacore::DComplex > & 
R ()
 Accessors to current svb's (differentiated) Residuals. More...
 
casacore::Array
< casacore::DComplex > & 
dR ()
 
casacore::DoublechiSq ()
 Access to chi2. More...
 
casacore::DoublelastChiSq ()
 
casacore::DoublesumWt ()
 
casacore::IntnWt ()
 
casacore::Vector
< casacore::Bool > & 
polWt ()
 
casacore::Doublelamb ()
 Access to parameters, & grad,hess,dp. More...
 
casacore::Vector
< casacore::Double > & 
lastPar ()
 
casacore::Vector
< casacore::Double > & 
grad ()
 
casacore::Vector
< casacore::Double > & 
lastGrad ()
 
casacore::Matrix
< casacore::Double > & 
hess ()
 
casacore::Matrix
< casacore::Double > & 
lastHess ()
 
casacore::Vector
< casacore::Double > & 
dpar ()
 
casacore::Vector
< casacore::Bool > & 
vary ()
 
casacore::IntnVary ()
 

Private Attributes

VisSetvs_
 Associated VisSet (LOCAL) More...
 
ComponentListcl_
 ComponentList (LOCAL) More...
 
VisBuffersvb_
 VisBuffer (from outside) More...
 
casacore::Int fitfld_
 FieldId in fit. More...
 
casacore::MDirection pc_
 Phase center w.r.t. More...
 
casacore::Int nPar_
 Total Number of parameters. More...
 
casacore::Cube
< casacore::DComplex > 
R_
 Residual/Differentiation caches. More...
 
casacore::Array
< casacore::DComplex > 
dR_
 
casacore::Double chiSq_
 Chi2, sum wts. More...
 
casacore::Double lastChiSq_
 
casacore::Double sumWt_
 
casacore::Int nWt_
 
casacore::Vector< casacore::BoolpolWt_
 
casacore::Vector
< casacore::Double
par_
 Parameter storage. More...
 
casacore::Vector
< casacore::Double
lastPar_
 
casacore::Double lamb_
 Gradient, Hessian, par update. More...
 
casacore::Vector
< casacore::Double
grad_
 
casacore::Vector
< casacore::Double
lastGrad_
 
casacore::Matrix
< casacore::Double
hess_
 
casacore::Matrix
< casacore::Double
lastHess_
 
casacore::Vector
< casacore::Double
dpar_
 
casacore::Vector< casacore::Boolvary_
 
casacore::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

casa::UVMod::UVMod ( VisSet vs)
virtual casa::UVMod::~UVMod ( )
virtual

Member Function Documentation

void casa::UVMod::accGradHess ( )
protected

Internal solving methods.

casacore::Double& casa::UVMod::chiSq ( )
inlineprotected

Access to chi2.

Definition at line 165 of file UVMod.h.

References chiSq_.

void casa::UVMod::chiSquare ( )
protected
ComponentList& casa::UVMod::cl ( )
inlineprotected

Access to ComponentList.

Definition at line 148 of file UVMod.h.

References cl_.

casacore::Vector<casacore::Double>& casa::UVMod::dpar ( )
inlineprotected

Definition at line 178 of file UVMod.h.

References dpar_.

casacore::Array<casacore::DComplex>& casa::UVMod::dR ( )
inlineprotected

Definition at line 162 of file UVMod.h.

References dR_.

casacore::Int& casa::UVMod::fitfld ( )
inlineprotected

Access to fieldId we are fitting for.

Definition at line 157 of file UVMod.h.

References fitfld_.

casacore::Vector<casacore::Double>& casa::UVMod::grad ( )
inlineprotected

Definition at line 174 of file UVMod.h.

References grad_.

casacore::Matrix<casacore::Double>& casa::UVMod::hess ( )
inlineprotected

Definition at line 176 of file UVMod.h.

References hess_.

void casa::UVMod::initSolve ( )
protected

Initial solving data.

casacore::Double& casa::UVMod::lamb ( )
inlineprotected

Access to parameters, & grad,hess,dp.

Definition at line 172 of file UVMod.h.

References lamb_.

casacore::Double& casa::UVMod::lastChiSq ( )
inlineprotected

Definition at line 166 of file UVMod.h.

References lastChiSq_.

casacore::Vector<casacore::Double>& casa::UVMod::lastGrad ( )
inlineprotected

Definition at line 175 of file UVMod.h.

References lastGrad_.

casacore::Matrix<casacore::Double>& casa::UVMod::lastHess ( )
inlineprotected

Definition at line 177 of file UVMod.h.

References lastHess_.

casacore::Vector<casacore::Double>& casa::UVMod::lastPar ( )
inlineprotected

Definition at line 173 of file UVMod.h.

References lastPar_.

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

Definition at line 118 of file UVMod.h.

References nPar_.

casacore::Int& casa::UVMod::nVary ( )
inlineprotected

Definition at line 180 of file UVMod.h.

casacore::Int& casa::UVMod::nWt ( )
inlineprotected

Definition at line 168 of file UVMod.h.

References nWt_.

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

Definition at line 126 of file UVMod.h.

References par_.

casacore::MDirection& casa::UVMod::pc ( )
inlineprotected

Definition at line 158 of file UVMod.h.

References pc_.

casacore::Vector<casacore::Bool>& casa::UVMod::polWt ( )
inlineprotected

Definition at line 169 of file UVMod.h.

References polWt_.

void casa::UVMod::printPar ( const casacore::Int iter)
protected
casacore::Cube<casacore::DComplex>& casa::UVMod::R ( )
inlineprotected

Accessors to current svb's (differentiated) Residuals.

Definition at line 161 of file UVMod.h.

References R_.

virtual void casa::UVMod::residual ( )
protectedvirtual

Calculate residuals (incl.

diff'd) and chi2

casacore::Bool casa::UVMod::setCompPar ( )
protected
void casa::UVMod::setModel ( const ComponentType::Shape  type,
const casacore::Vector< casacore::Double inpar,
const casacore::Vector< casacore::Bool invary 
)
SkyComponent& casa::UVMod::skycomp ( const casacore::uInt  id)
inlineprotected

Access to SkyComponents by id.

Definition at line 151 of file UVMod.h.

References cl_, and casa::ComponentList::component().

void casa::UVMod::solveGradHess ( const casacore::Bool doCovar = false)
protected
casacore::Double& casa::UVMod::sumWt ( )
inlineprotected

Definition at line 167 of file UVMod.h.

References sumWt_.

VisBuffer& casa::UVMod::svb ( )
inlineprotected

Access to current VisBuffer.

Definition at line 154 of file UVMod.h.

References svb_.

casacore::Bool casa::UVMod::updPar ( )
protected
casacore::Vector<casacore::Bool>& casa::UVMod::vary ( )
inlineprotected

Definition at line 179 of file UVMod.h.

References vary_.

VisSet& casa::UVMod::vs ( )
inlineprotected

Access to VisSet.

Definition at line 145 of file UVMod.h.

References vs_.

Member Data Documentation

casacore::Double casa::UVMod::chiSq_
private

Chi2, sum wts.

Definition at line 208 of file UVMod.h.

Referenced by chiSq().

ComponentList* casa::UVMod::cl_
private

ComponentList (LOCAL)

Definition at line 189 of file UVMod.h.

Referenced by cl(), and skycomp().

casacore::Vector<casacore::Double> casa::UVMod::dpar_
private

Definition at line 225 of file UVMod.h.

Referenced by dpar().

casacore::Array<casacore::DComplex> casa::UVMod::dR_
private

Definition at line 205 of file UVMod.h.

Referenced by dR().

casacore::Int casa::UVMod::fitfld_
private

FieldId in fit.

Definition at line 195 of file UVMod.h.

Referenced by fitfld().

casacore::Vector<casacore::Double> casa::UVMod::grad_
private

Definition at line 221 of file UVMod.h.

Referenced by grad().

casacore::Matrix<casacore::Double> casa::UVMod::hess_
private

Definition at line 223 of file UVMod.h.

Referenced by hess().

casacore::Double casa::UVMod::lamb_
private

Gradient, Hessian, par update.

Definition at line 220 of file UVMod.h.

Referenced by lamb().

casacore::Double casa::UVMod::lastChiSq_
private

Definition at line 209 of file UVMod.h.

Referenced by lastChiSq().

casacore::Vector<casacore::Double> casa::UVMod::lastGrad_
private

Definition at line 222 of file UVMod.h.

Referenced by lastGrad().

casacore::Matrix<casacore::Double> casa::UVMod::lastHess_
private

Definition at line 224 of file UVMod.h.

Referenced by lastHess().

casacore::Vector<casacore::Double> casa::UVMod::lastPar_
private

Definition at line 217 of file UVMod.h.

Referenced by lastPar().

casacore::Int casa::UVMod::nPar_
private

Total Number of parameters.

Definition at line 201 of file UVMod.h.

Referenced by nPar().

casacore::Int casa::UVMod::nVary_
private

Definition at line 227 of file UVMod.h.

casacore::Int casa::UVMod::nWt_
private

Definition at line 211 of file UVMod.h.

Referenced by nWt().

casacore::Vector<casacore::Double> casa::UVMod::par_
private

Parameter storage.

Definition at line 216 of file UVMod.h.

Referenced by par().

casacore::MDirection casa::UVMod::pc_
private

Phase center w.r.t.

which modelfitting is done

Definition at line 198 of file UVMod.h.

Referenced by pc().

casacore::Vector<casacore::Bool> casa::UVMod::polWt_
private

Definition at line 213 of file UVMod.h.

Referenced by polWt().

casacore::Cube<casacore::DComplex> casa::UVMod::R_
private

Residual/Differentiation caches.

Definition at line 204 of file UVMod.h.

Referenced by R().

casacore::Double casa::UVMod::sumWt_
private

Definition at line 210 of file UVMod.h.

Referenced by sumWt().

VisBuffer* casa::UVMod::svb_
private

VisBuffer (from outside)

Definition at line 192 of file UVMod.h.

Referenced by svb().

casacore::Vector<casacore::Bool> casa::UVMod::vary_
private

Definition at line 226 of file UVMod.h.

Referenced by vary().

VisSet* casa::UVMod::vs_
private

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: