casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ACoh.h
Go to the documentation of this file.
00001 //# ACoh.h: Definition for ACoh
00002 //# Copyright (C) 1996,1997,1999,2000
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be adressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef SYNTHESIS_ACOH_H
00030 #define SYNTHESIS_ACOH_H
00031 
00032 #include <casa/aips.h>
00033 #include <casa/BasicSL/Complex.h>
00034 #include <synthesis/MeasurementEquations/Iterate.h>
00035 #include <synthesis/MSVis/VisSet.h>
00036 
00037 namespace casa { //# NAMESPACE CASA - BEGIN
00038 
00039 // <summary> 
00040 // ACoh: Model additive errors for the VisEquation.
00041 // </summary>
00042 
00043 // <use visibility=export>
00044 
00045 // <reviewed reviewer="" date="" tests="" demos="">
00046 
00047 // <prerequisite>
00048 //   <li> <linkto module="MeasurementComponents">MeasurementComponents</linkto> module
00049 //   <li> <linkto class="VisSet">VisSet</linkto> class
00050 //   <li> <linkto class="VisEquation">VisEquation</linkto> class
00051 // </prerequisite>
00052 //
00053 // <etymology>
00054 // ACoh describes an interface for additive errors to be used in
00055 // the <linkto class="VisEquation">VisEquation</linkto>. It is an Abstract Base Class: most methods
00056 // must be defined in derived classes.
00057 // </etymology>
00058 //
00059 // <synopsis> 
00060 //
00061 // See <linkto class="VisEquation">VisEquation</linkto> for definition of the
00062 // Visibility Measurement Equation.
00063 //
00064 // The following examples illustrate how an ACoh can be
00065 // used:
00066 // <ul>
00067 // <li> Simulation: random additive noise of a certain scaling
00068 // can be added: <linkto class="SimACoh">SimACoh</linkto>
00069 // <li> Correlator offsets
00070 // </ul>
00071 // </synopsis> 
00072 //
00073 // <example>
00074 // <srcblock>
00075 //      // Read the VisSet from disk
00076 //      VisSet vs("3c84.MS");
00077 //
00078 //      VisEquation ve(vs);
00079 //
00080 //      // Make an ACoh
00081 //      CorrelatorOffsetACoh coac(vs);
00082 //
00083 //      ve.setACoh(coac);
00084 //
00085 //      // Correct the visset
00086 //      ve.correct();
00087 // </srcblock>
00088 // </example>
00089 //
00090 // <motivation>
00091 // The properties of an additive component must be described
00092 // for the <linkto class="VisEquation">VisEquation</linkto>.
00093 // </motivation>
00094 //
00095 // <todo asof="97/10/01">
00096 // </todo>
00097 
00098 class VisEquation;
00099 
00100 class ACoh  {
00101 public:
00102     ACoh() {};
00103     virtual ~ACoh() {};
00104     
00105     virtual Bool solve(VisEquation& ve) = 0;
00106 
00107     // Apply additive error (Inverse is minus)
00108     // <group>
00109     virtual VisBuffer& apply(VisBuffer& vb) = 0;
00110     virtual VisBuffer& applyInv(VisBuffer& vb) = 0;
00111     // </group>
00112 private:
00113 };
00114 
00115 
00116 } //# NAMESPACE CASA - END
00117 
00118 #endif