casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CEMemProgress.h
Go to the documentation of this file.
1 //# CEMemProgress.h: monitor progress in Mem
2 //# Copyright (C) 1997,1998,1999,2000
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 addressed 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 //# $Id$
27 
28 #ifndef SYNTHESIS_CEMEMPROGRESS_H
29 #define SYNTHESIS_CEMEMPROGRESS_H
30 
31 //# Includes
32 #include <casa/aips.h>
33 #include <casa/Quanta/Quantum.h>
36 #include <casa/Arrays/IPosition.h>
37 #include <casa/Arrays/Vector.h>
38 
39 namespace casacore{
40 
41 template <class T> class Vector;
42 class PGPlotter;
43 // the class ProgressMeter sounded bad. This abstract class serves
44 }
45 
46 namespace casa { //# NAMESPACE CASA - BEGIN
47 
48 //# Forward Declarations
49 
50 // <summary>
51 // Class to monitor progress in MEM deconvolution
52 // </summary>
53 
54 // <use visibility=export>
55 
56 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
57 // </reviewed>
58 
59 // <synopsis>
60 // </synopsis>
61 
62 // <example>
63 // <srcblock>
64 // </srcblock>
65 // </example>
66 
67 // <motivation>
68 // Since operations on Lattices can take a while, it can be useful
69 // to show the progress. However, making module Lattices dependent on
70 // as a bridge between the casacore::Lattice module and the casacore::ProgressMeter class
71 // (or any other class showing the progress).
72 // </motivation>
73 //
74 //# <todo asof="1997/08/01">
75 //# <li>
76 //# </todo>
77 
78 
80 public:
81 
82  enum EntType {
85  };
86 
87 
88 
89  CEMemProgress(casacore::PGPlotter* pgplotter=0);
90 
91  virtual ~CEMemProgress();
92 
93  // people usually don't worry about maximum residual with MEM; we'll do it, though
94 
95  void info(const casacore::Bool lastcall,
96  const casacore::Int iteration,
97  const casacore::Int numberIterations,
100  const casacore::Float& maximumRes,
101  const casacore::IPosition& posMaximum,
102  const casacore::Float& totalFlux,
103  const casacore::Float& sigma,
104  const casacore::Float& normGrad,
105  const casacore::Float& entropy);
106 
107 protected:
108 
109 private:
110 
111  void basicSetUp(casacore::Bool doPlot = false);
112 
113  void plotOne(const casacore::Int iteration,
114  const casacore::Float sigma, const casacore::Float maxResid,
115  const casacore::Float flux);
116 
118 
132 };
133 
134 
135 
136 } //# NAMESPACE CASA - END
137 
138 #endif
casacore::Vector< casacore::Float > itsIterationNumbers
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
int Int
Definition: aipstype.h:50
std::vector< double > Vector
Definition: ds9context.h:24
casacore::Vector< casacore::Float > itsNormGrads
casacore::uInt itsCurrentTotalIterations
Class to monitor progress in MEM deconvolution.
Definition: CEMemProgress.h:79
casacore::PGPlotter * itsPgplotter
casacore::Float itsCurrentSigmaScale
casacore::uInt itsCurrentIndex
casacore::Float itsCurrentFluxScale
casacore::Vector< casacore::Float > itsMaxResiduals
casacore::Float itsCurrentMaxResidualScale
casacore::Vector< casacore::Float > itsSigmas
virtual ~CEMemProgress()
casacore::Float itsCurrentEntropyScale
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
casacore::Vector< casacore::Float > itsEntropies
Standard plotting object for application programmers.
Definition: PGPlotter.h:95
void basicSetUp(casacore::Bool doPlot=false)
void info(const casacore::Bool lastcall, const casacore::Int iteration, const casacore::Int numberIterations, const casacore::Lattice< casacore::Float > &model, const casacore::Lattice< casacore::Float > &resid, const casacore::Float &maximumRes, const casacore::IPosition &posMaximum, const casacore::Float &totalFlux, const casacore::Float &sigma, const casacore::Float &normGrad, const casacore::Float &entropy)
people usually don&#39;t worry about maximum residual with MEM; we&#39;ll do it, though
casacore::Float itsCurrentNormGradScale
CEMemProgress(casacore::PGPlotter *pgplotter=0)
void plotOne(const casacore::Int iteration, const casacore::Float sigma, const casacore::Float maxResid, const casacore::Float flux)
unsigned int uInt
Definition: aipstype.h:51
casacore::Vector< casacore::Float > itsTotalFluxes
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42