casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SDAlgorithmTest.h
Go to the documentation of this file.
1 //# SDAlgorithmHogbomClean.h: Definition for SDAlgorithmHogbomClean
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_SDALGORITHMTEST_H
30 #define SYNTHESIS_SDALGORITHMTEST_H
31 
34 #include <casa/Arrays/Matrix.h>
39 #include <casa/Logging/LogSink.h>
40 #include <casa/System/PGPlotter.h>
41 
43 
44 namespace casa { //# NAMESPACE CASA - BEGIN
45 
46  /* Forware Declaration */
47  class SIMinorCycleController;
48 
49 
51  {
52  public:
53 
54  // Empty constructor
56  virtual ~SDAlgorithmTest();
57 
58 
59  protected:
60 
61  // Local functions to be overloaded by various algorithm deconvolvers.
62  virtual void takeOneStep( casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold, casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int& iterdone );
63  virtual void initializeDeconvolver( casacore::Float &peakresidual, casacore::Float &modelflux );
64  virtual void finalizeDeconvolver();
65  virtual void queryDesiredShape(casacore::Bool &onechan, casacore::Bool &onepol); // , nImageFacets.
66  //virtual void restorePlane();
67 
68  // ....
69 
70  // casacore::Bool findMaxAbs(const casacore::Matrix<casacore::Float>& lattice,casacore::Float& maxAbs,casacore::IPosition& posMaxAbs);
71 
74 
75 
76  /*
77  void findNextComponent( casacore::Float loopgain );
78  void updateModel();
79  void updateResidual();
80  */
81 
83 
87 
88  // IPositions for patch boundaries.
90 
91  };
92 
93 } //# NAMESPACE CASA - END
94 
95 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
casacore::IPosition itsBlcPsf
int Int
Definition: aipstype.h:50
virtual void initializeDeconvolver()=0
virtual void initializeDeconvolver(casacore::Float &amp;peakresidual, casacore::Float &amp;modelflux)=0; ...
SDAlgorithmTest()
Empty constructor.
virtual void finalizeDeconvolver()
casacore::Array< casacore::Float > itsMatPsf
casacore::IPosition itsTrc
virtual void takeOneStep(casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold, casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int &iterdone)
Local functions to be overloaded by various algorithm deconvolvers.
virtual ~SDAlgorithmTest()
casacore::Array< casacore::Float > itsMatResidual
casacore::IPosition itsBlc
IPositions for patch boundaries.
virtual void queryDesiredShape(casacore::Bool &onechan, casacore::Bool &onepol)
casacore::IPosition itsMaxPos
casacore::Float itsModelFlux
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::IPosition itsTrcPsf
float Float
Definition: aipstype.h:54
void makeBoxesSameSize(casacore::IPosition &blc1, casacore::IPosition &trc1, casacore::IPosition &blc2, casacore::IPosition &trc2)
void calculatePatchBoundaries()
virtual void restorePlane();
casacore::Array< casacore::Float > itsMatModel
casacore::Float itsPeakResidual