CEMemProgress.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef SYNTHESIS_CEMEMPROGRESS_H
00029 #define SYNTHESIS_CEMEMPROGRESS_H
00030
00031
00032 #include <casa/aips.h>
00033 #include <casa/Quanta/Quantum.h>
00034 #include <lattices/Lattices/Lattice.h>
00035 #include <lattices/Lattices/TempLattice.h>
00036 #include <casa/Arrays/IPosition.h>
00037 #include <casa/Arrays/Vector.h>
00038
00039 namespace casa {
00040
00041
00042 template <class T> class Vector;
00043 class PGPlotter;
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 class CEMemProgress {
00076 public:
00077
00078 enum EntType {
00079 ENTROPY=0,
00080 EMPINESS=1
00081 };
00082
00083
00084
00085 CEMemProgress(PGPlotter* pgplotter=0);
00086
00087 virtual ~CEMemProgress();
00088
00089
00090
00091 void info(const Bool lastcall,
00092 const Int iteration,
00093 const Int numberIterations,
00094 const Lattice<Float>& model,
00095 const Lattice<Float>& resid,
00096 const Float& maximumRes,
00097 const IPosition& posMaximum,
00098 const Float& totalFlux,
00099 const Float& sigma,
00100 const Float& normGrad,
00101 const Float& entropy);
00102
00103 protected:
00104
00105 private:
00106
00107 void basicSetUp(Bool doPlot = False);
00108
00109 void plotOne(const Int iteration,
00110 const Float sigma, const Float maxResid,
00111 const Float flux);
00112
00113 PGPlotter* itsPgplotter;
00114
00115 Vector<Float> itsIterationNumbers;
00116 Vector<Float> itsTotalFluxes;
00117 Vector<Float> itsMaxResiduals;
00118 Vector<Float> itsSigmas;
00119 Vector<Float> itsNormGrads;
00120 Vector<Float> itsEntropies;
00121 uInt itsCurrentIndex;
00122 uInt itsCurrentTotalIterations;
00123 Float itsCurrentFluxScale;
00124 Float itsCurrentMaxResidualScale;
00125 Float itsCurrentSigmaScale;
00126 Float itsCurrentNormGradScale;
00127 Float itsCurrentEntropyScale;
00128 };
00129
00130
00131
00132 }
00133
00134 #endif