casa
5.7.0-16
|
VisCalSolver: Default solver for calibration using visibility data. More...
#include <VisCalSolver.h>
Public Member Functions | |
VisCalSolver () | |
Constructor currently generic. More... | |
~VisCalSolver () | |
Destructor. More... | |
casacore::Bool | solve (VisEquation &viseq, SolvableVisCal &svc, VisBuffer &svb) |
Do the solve. More... | |
casacore::Bool | solve (VisEquation &viseq, SolvableVisCal &svc, VisBuffGroupAcc &vbga) |
Protected Member Functions | |
VisBuffer & | svb () |
Access to fundamental external objects: More... | |
VisBuffGroupAcc & | vbga () |
VisEquation & | ve () |
SolvableVisCal & | svc () |
casacore::Cube < casacore::Complex > & | R () |
Accessors to current svb's (differentiated) Residuals. More... | |
casacore::Array < casacore::Complex > & | dR () |
casacore::Matrix < casacore::Bool > & | Rflg () |
casacore::Array < casacore::Complex > & | dSrc () |
casacore::Int & | maxIter () |
Access to maxIter_. More... | |
casacore::Double & | chiSq () |
Access to chi2. More... | |
casacore::Vector < casacore::Double > & | chiSqV () |
casacore::Double & | lastChiSq () |
casacore::Double & | dChiSq () |
casacore::Double & | sumWt () |
casacore::Int & | nWt () |
casacore::Int & | nTotalPar () |
Access to parameters, & grad,hess,dp. More... | |
casacore::Int & | nCalPar () |
casacore::Int & | nSrcPar () |
casacore::Vector < casacore::Complex > & | par () |
casacore::Vector < casacore::Bool > & | parOK () |
casacore::Vector < casacore::Float > & | parErr () |
casacore::Vector < casacore::Complex > & | srcPar () |
casacore::Vector < casacore::DComplex > & | grad () |
casacore::Vector < casacore::Double > & | hess () |
casacore::Vector < casacore::Complex > & | dpar () |
casacore::Vector < casacore::Complex > & | dCalPar () |
casacore::Vector < casacore::Complex > & | dSrcPar () |
casacore::Vector < casacore::Complex > & | lastCalPar () |
casacore::Vector < casacore::Complex > & | lastSrcPar () |
casacore::Double & | lambda () |
void | initSolve () |
Initialize solving data. More... | |
void | residualate () |
Obtain trial residuals w.r.t svc's current pars. More... | |
void | residualate2 () |
void | differentiate () |
Differentiate the svb w.r.t svc's pars. More... | |
void | differentiate2 () |
void | chiSquare () |
Calculate residuals (incl. More... | |
void | chiSquare2 () |
casacore::Bool | converged () |
Check for convergence. More... | |
void | accGradHess () |
Internal solving methods. More... | |
void | accGradHess2 () |
void | revert () |
void | solveGradHess () |
void | updatePar () |
void | optStepSize () |
Optimize the step parabolically. More... | |
void | optStepSize2 () |
void | getErrors () |
Get and print par errors. More... | |
void | printPar (const casacore::Int &iter) |
Private Member Functions | |
casacore::Int & | prtlev () |
Diagnostic print level. More... | |
VisCalSolver: Default solver for calibration using visibility data.
Public interface
VisCal for visibility calibration (meaning solved from visibilities), Solver for solving.
VisCalSolver describes an interface for solving for calibration from visibility data in a VisBuffer. It hosts the communication of visibility data with otherwise generic solving mechanims. A Levenberg-Marquardt solver is supplied here by default, but it is intended that this class be the template for interfaces to third-party solving mechanisms.
It is desirable to establish the distinct communicative boundary between generic solving mechanims and the particulars of visibility data and calibration component descriptions. This class is intended to serve this purpose, by providing access to visibility data and calibration in terms of quantities necessary for least-squares (and other) style solvers.
Definition at line 94 of file VisCalSolver.h.
casa::VisCalSolver::VisCalSolver | ( | ) |
Constructor currently generic.
casa::VisCalSolver::~VisCalSolver | ( | ) |
Destructor.
|
protected |
Internal solving methods.
|
protected |
|
inlineprotected |
|
protected |
Calculate residuals (incl.
diff'd) and chi2
|
protected |
|
inlineprotected |
Definition at line 127 of file VisCalSolver.h.
References chiSqV_.
|
protected |
Check for convergence.
|
inlineprotected |
Definition at line 144 of file VisCalSolver.h.
References dsrcpar_.
|
inlineprotected |
Definition at line 129 of file VisCalSolver.h.
References dChiSq_.
|
protected |
Differentiate the svb w.r.t svc's pars.
|
protected |
|
inlineprotected |
Definition at line 143 of file VisCalSolver.h.
References dpar_.
|
inlineprotected |
Definition at line 117 of file VisCalSolver.h.
References dR_.
|
inlineprotected |
Definition at line 120 of file VisCalSolver.h.
References dSrc_.
|
inlineprotected |
Definition at line 145 of file VisCalSolver.h.
References dcalpar_.
|
protected |
Get and print par errors.
|
inlineprotected |
Definition at line 141 of file VisCalSolver.h.
References grad_.
|
inlineprotected |
Definition at line 142 of file VisCalSolver.h.
References hess_.
|
protected |
Initialize solving data.
|
inlineprotected |
Definition at line 149 of file VisCalSolver.h.
References lambda_.
|
inlineprotected |
Definition at line 146 of file VisCalSolver.h.
References lastCalPar_.
|
inlineprotected |
Definition at line 128 of file VisCalSolver.h.
References lastChiSq_.
|
inlineprotected |
Definition at line 147 of file VisCalSolver.h.
References lastSrcPar_.
|
inlineprotected |
|
inlineprotected |
Definition at line 135 of file VisCalSolver.h.
References nCalPar_.
|
inlineprotected |
Definition at line 136 of file VisCalSolver.h.
References nSrcPar_.
|
inlineprotected |
Access to parameters, & grad,hess,dp.
Definition at line 134 of file VisCalSolver.h.
References nTotalPar_.
|
inlineprotected |
Definition at line 131 of file VisCalSolver.h.
References nWt_.
|
protected |
Optimize the step parabolically.
|
protected |
|
inlineprotected |
Definition at line 137 of file VisCalSolver.h.
References par_.
|
inlineprotected |
Definition at line 139 of file VisCalSolver.h.
References parErr_.
|
inlineprotected |
Definition at line 138 of file VisCalSolver.h.
References parOK_.
|
protected |
|
inlineprivate |
Diagnostic print level.
Definition at line 188 of file VisCalSolver.h.
|
inlineprotected |
Accessors to current svb's (differentiated) Residuals.
Definition at line 116 of file VisCalSolver.h.
References R_.
|
protected |
Obtain trial residuals w.r.t svc's current pars.
|
protected |
|
protected |
|
inlineprotected |
Definition at line 118 of file VisCalSolver.h.
References Rflg_.
casacore::Bool casa::VisCalSolver::solve | ( | VisEquation & | viseq, |
SolvableVisCal & | svc, | ||
VisBuffer & | svb | ||
) |
Do the solve.
casacore::Bool casa::VisCalSolver::solve | ( | VisEquation & | viseq, |
SolvableVisCal & | svc, | ||
VisBuffGroupAcc & | vbga | ||
) |
|
protected |
|
inlineprotected |
Definition at line 140 of file VisCalSolver.h.
References srcPar_.
|
inlineprotected |
Definition at line 130 of file VisCalSolver.h.
References sumWt_.
|
inlineprotected |
Access to fundamental external objects:
Definition at line 110 of file VisCalSolver.h.
References svb_.
|
inlineprotected |
Definition at line 113 of file VisCalSolver.h.
References svc_.
|
protected |
|
inlineprotected |
Definition at line 111 of file VisCalSolver.h.
References vbga_.
|
inlineprotected |
Definition at line 112 of file VisCalSolver.h.
References ve_.
|
private |
|
private |
Definition at line 218 of file VisCalSolver.h.
Referenced by chiSqV().
|
private |
Definition at line 223 of file VisCalSolver.h.
|
private |
Definition at line 235 of file VisCalSolver.h.
Referenced by dSrcPar().
|
private |
Definition at line 220 of file VisCalSolver.h.
Referenced by dChiSq().
|
private |
|
private |
Definition at line 207 of file VisCalSolver.h.
Referenced by dR().
|
private |
|
private |
Definition at line 235 of file VisCalSolver.h.
Referenced by dCalPar().
|
private |
Gradient, Hessian (these are casacore::Double for precision in accumulation.
Definition at line 239 of file VisCalSolver.h.
Referenced by grad().
|
private |
Definition at line 240 of file VisCalSolver.h.
Referenced by hess().
|
private |
|
private |
Definition at line 231 of file VisCalSolver.h.
Referenced by lastCalPar().
|
private |
Definition at line 219 of file VisCalSolver.h.
Referenced by lastChiSq().
|
private |
Definition at line 231 of file VisCalSolver.h.
Referenced by lastSrcPar().
|
private |
Maximum number of solve iterations to attempt.
Definition at line 214 of file VisCalSolver.h.
Referenced by maxIter().
|
private |
Definition at line 202 of file VisCalSolver.h.
Referenced by nCalPar().
|
private |
Definition at line 203 of file VisCalSolver.h.
Referenced by nSrcPar().
|
private |
Total Number of parameters.
Definition at line 201 of file VisCalSolver.h.
Referenced by nTotalPar().
|
private |
Definition at line 222 of file VisCalSolver.h.
Referenced by nWt().
|
private |
Step optimization toggle.
Definition at line 246 of file VisCalSolver.h.
|
private |
Parameter storage (these are casacore::Complex to match the VisCal solvePar)
Definition at line 227 of file VisCalSolver.h.
Referenced by par().
|
private |
Definition at line 229 of file VisCalSolver.h.
Referenced by parErr().
|
private |
Definition at line 228 of file VisCalSolver.h.
Referenced by parOK().
|
private |
Diagnostic print level.
Definition at line 249 of file VisCalSolver.h.
|
private |
|
private |
Definition at line 208 of file VisCalSolver.h.
Referenced by Rflg().
|
private |
Definition at line 230 of file VisCalSolver.h.
Referenced by srcPar().
|
private |
Definition at line 221 of file VisCalSolver.h.
Referenced by sumWt().
|
private |
|
private |
|
private |
Definition at line 192 of file VisCalSolver.h.
Referenced by vbga().
|
private |