casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
XCorr.h
Go to the documentation of this file.
00001 //# XCorr.h: Definitions of interface for XCorr 
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_XCORR_H
00030 #define SYNTHESIS_XCORR_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> Model non-linear correlator function for the VisEquation </summary>
00040 
00041 // <use visibility=export>
00042 
00043 // <reviewed reviewer="" date="" tests="" demos="">
00044 
00045 // <prerequisite>
00046 //   <li> <linkto module="MeasurementComponents">MeasurementComponents</linkto> module
00047 //   <li> <linkto class="VisSet">VisSet</linkto> class
00048 //   <li> <linkto class="VisEquation">VisEquation</linkto> class
00049 // </prerequisite>
00050 //
00051 // <etymology>
00052 // XCorr describes an interface for a non-linear function to be used in
00053 // the <linkto class="VisEquation">VisEquation</linkto>. It is an Abstract Base Class: most methods
00054 // must be defined in derived classes.
00055 // </etymology>
00056 //
00057 // <synopsis> 
00058 //
00059 // See <linkto class="VisEquation">VisEquation</linkto> for definition of the
00060 // Visibility Measurement Equation.
00061 //
00062 // The following examples illustrate how an XCorr can be
00063 // used:
00064 // <ul>
00065 // <li> Simulation: van Vleck correction
00066 // </ul>
00067 // </synopsis> 
00068 //
00069 // <example>
00070 // <srcblock>
00071 //      // Read the VisSet from disk
00072 //      VisSet vs("3c84.MS");
00073 //
00074 //      VisEquation ve(vs);
00075 //
00076 //      // Make an XCorr
00077 //      CorrelatorXCorr coxc(vs);
00078 //
00079 //      ve.SetXCorr(coxc);
00080 //
00081 //      // Correct the visset
00082 //      ve.correct();
00083 // </srcblock>
00084 // </example>
00085 //
00086 // <motivation>
00087 // The properties of a multiplicative component must be described
00088 // for the <linkto class="VisEquation">VisEquation</linkto>.
00089 // </motivation>
00090 //
00091 // <todo asof="97/10/01">
00092 // <li> There are no derived classes!
00093 // </todo>
00094 
00095 class XCorr {
00096 public:
00097 
00098   XCorr();
00099   
00100   // Apply actual function and inverse
00101   // <group>
00102   virtual VisBuffer& apply(VisBuffer& vb) = 0;
00103   virtual VisBuffer& applyInv(VisBuffer& vb) = 0;
00104   // </group>
00105  
00106 };
00107 
00108 } //# NAMESPACE CASA - END
00109 
00110 #endif