casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SDAlgorithmMSClean.h
Go to the documentation of this file.
1 //# SDAlgorithmMSClean.h: Definition for SDAlgorithmMSClean
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_SDALGORITHMMSCLEAN_H
30 #define SYNTHESIS_SDALGORITHMMSCLEAN_H
31 
34 #include <casa/Arrays/Matrix.h>
39 #include <casa/Logging/LogSink.h>
40 #include <casa/System/PGPlotter.h>
41 
44 
45 namespace casa { //# NAMESPACE CASA - BEGIN
46 
47  /* Forware Declaration */
48  class SIMinorCycleController;
49 
50 
52  {
53  public:
54 
55  // Empty constructor
57  casacore::Float smallscalebias=0.6,
58  // casacore::Int stoplargenegatives=-2,
59  casacore::Int stoppointmode=-1 );
60  virtual ~SDAlgorithmMSClean();
61 
62  // void restore( casacore::CountedPtr<SIImageStore> imagestore );
63 
64  //returns the estimate of memory used in kilobytes (kB);
65  virtual casacore::Long estimateRAM( const std::vector<int>& imsize);
66  protected:
67 
68  // Local functions to be overloaded by various algorithm deconvolvers.
69  void takeOneStep( casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold,
70  casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int &iterdone );
71  // void initializeDeconvolver( casacore::Float &peakresidual, casacore::Float &modelflux );
72  void initializeDeconvolver();
73  void finalizeDeconvolver();
74 
76  casacore::Array<casacore::Float> itsMatMask; // Make an array if we eventually use multi-term masks...
77 
81  //casacore::Int itsStopLargeNegatives;
83 
84  private:
86 
87  };
88 
89 } //# NAMESPACE CASA - END
90 
91 #endif
casacore::Float itsSmallScaleBias
int Int
Definition: aipstype.h:50
casacore::Array< casacore::Float > itsMatPsf
SDAlgorithmMSClean(casacore::Vector< casacore::Float > scalesizes, casacore::Float smallscalebias=0.6, casacore::Int stoppointmode=-1)
Empty constructor.
casacore::Array< casacore::Float > itsMatResidual
virtual casacore::Long estimateRAM(const std::vector< int > &imsize)
void restore(casacore::CountedPtr&lt;SIImageStore&gt; imagestore);
casacore::Vector< casacore::Float > itsScaleSizes
casacore::Int itsStopPointMode
casacore::Int itsStopLargeNegatives;
long Long
Definition: aipstype.h:52
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.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
void initializeDeconvolver()
void initializeDeconvolver(casacore::Float &amp;peakresidual, casacore::Float &amp;modelflux); ...
A copy of casacore::LatticeCleaner but just using 2-D matrices.
Definition: MatrixCleaner.h:93
casacore::Array< casacore::Float > itsMatMask
casacore::Array< casacore::Float > itsMatModel