casa
$Rev:20696$
|
00001 //# SimACoh.h: Definition for Simulated additive errors 00002 //# Copyright (C) 1996,1997,1999 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_SIMACOH_H 00030 #define SYNTHESIS_SIMACOH_H 00031 00032 #include <casa/aips.h> 00033 #include <casa/BasicMath/Random.h> 00034 #include <synthesis/MeasurementComponents/ACoh.h> 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 // <summary> 00039 // SimACoh: Model additive noise errors for the <linkto class="VisEquation">VisEquation</linkto> 00040 // </summary> 00041 00042 // <use visibility=export> 00043 00044 // <reviewed reviewer="" date="" tests="" demos=""> 00045 00046 // <prerequisite> 00047 // <li> <linkto module="MeasurementComponents">MeasurementComponents</linkto> module 00048 // <li> <linkto class="VisSet">VisSet</linkto> class 00049 // <li> <linkto class="VisEquation">VisEquation</linkto> class 00050 // </prerequisite> 00051 // 00052 // <etymology> 00053 // SimACoh describes random additive errors to be used in 00054 // the <linkto class="VisEquation">VisEquation</linkto>. 00055 // </etymology> 00056 // 00057 // <synopsis> 00058 // 00059 // See <linkto class="VisEquation">VisEquation</linkto> for definition of the 00060 // Visibility Measurement Equation. See <linkto class="ACoh">ACoh</linkto> 00061 // for how SimACoh is to be used. 00062 // </synopsis> 00063 // 00064 // <motivation> 00065 // The properties of an additive component must be described 00066 // for the <linkto class="VisEquation">VisEquation</linkto>. 00067 // </motivation> 00068 // 00069 // <todo asof="97/10/01"> 00070 // </todo> 00071 00072 class SimACoh : public ACoh 00073 { 00074 public: 00075 // Construct from VisSet, seed and rms of additive noise (normal dist.) 00076 SimACoh(Int seed=1, Double rms=0.1); 00077 00078 // Apply additive error (Inverse is minus) 00079 // <group> 00080 virtual VisBuffer& apply(VisBuffer& vb); 00081 virtual VisBuffer& applyInv(VisBuffer& vb); 00082 // </group> 00083 private: 00084 Bool solve(VisEquation& /*ve*/) {return True;} 00085 00086 SimACoh(); 00087 MLCG rndGen_p; 00088 Normal noiseDist_p; 00089 }; 00090 00091 00092 } //# NAMESPACE CASA - END 00093 00094 #endif