casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataSampling.h
Go to the documentation of this file.
1 //# DataSampling.h: Definition for DataSampling
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001
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 adressed 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 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_DATASAMPLING_H
30 #define SYNTHESIS_DATASAMPLING_H
31 
33 #include <casa/Arrays/Matrix.h>
34 #include <casa/Arrays/Array.h>
35 #include <casa/Arrays/Vector.h>
36 #include <casa/Arrays/Matrix.h>
37 
38 namespace casa { //# NAMESPACE CASA - BEGIN
39 
40 // <summary> Provides sampling of data for esimation algorithms
41 // </summary>
42 
43 // <use visibility=export>
44 
45 // <reviewed reviewer="" date="" tests="" demos="">
46 
47 // <prerequisite>
48 // </prerequisite>
49 //
50 // <etymology>
51 // Samples casacore::Data as needed for various estimation algorithms
52 // </etymology>
53 //
54 // <synopsis>
55 // Esimation algorithms such as the Pixon method need sampled
56 // and unitless versions of the data. This class is a base class
57 // for such sampling classes. Derived examples are for single
58 // dish imaging (SDDataSampling) and image deconvolution
59 // (ImageDataSampling).
60 //
61 // THe calculated quantities are
62 // <ul>
63 // <li> The casacore::Data Sampling casacore::Function: the coordinates of the sampled
64 // points in some space
65 // <li> The casacore::Data: the actual data points corresponding to the
66 // casacore::Data Sampling Function
67 // <li> The Error: the error per data point.
68 // <li> The Point Response casacore::Function in that space
69 //
70 // The DataSampling object is constructed with the data sources
71 // as arguments, and then the calculate method is used to find the
72 // above quantities. The estimation method may then retrieve the
73 // data quantities as needed.
74 // </synopsis>
75 //
76 // <example>
77 // // Define an estimator
78 // PixonProcessor pp;
79 //
80 // // Get the model image
81 // casacore::PagedImage<casacore::Float> modelImage(modelName);
82 //
83 // // Set up the data sampling
84 // VPSkyJones vp(ms, true, parAngleInc, squintType);
85 // SDDataSampling ds(ms, vp);
86 //
87 // // Calculating data sampling, etc.
88 //
89 // ds.calculate(modelImage);
90 //
91 // // Finding pixon solution
92 // pp.calculate(ds);
93 // </example>
94 //
95 // <motivation>
96 // Define an interface to allow efficient processing of chunks of
97 // data
98 // </motivation>
99 //
100 // <todo asof="01/03/03">
101 // <ul> Derive more examples
102 // </todo>
103 
105 public:
106 
107  DataSampling();
108 
109  // Copy constructor
110  DataSampling(const DataSampling &other);
111 
112  // Assignment operator
113  DataSampling &operator=(const DataSampling &other);
114 
115  virtual ~DataSampling();
116 
118 
120 
122 
124 
126 
127 protected:
128 
133 
135 
137 
138  void ok();
139 
140 };
141 
142 } //# NAMESPACE CASA - END
143 
144 #endif
int Int
Definition: aipstype.h:50
casacore::Int lastRow
Definition: DataSampling.h:134
casacore::Array< casacore::Float > data_p
Definition: DataSampling.h:130
casacore::Array< casacore::Float > sigma_p
Definition: DataSampling.h:131
const casacore::Array< casacore::Float > & getDX() const
Provides sampling of data for esimation algorithms.
Definition: DataSampling.h:104
DataSampling & operator=(const DataSampling &other)
Assignment operator.
const casacore::Array< casacore::Float > & getSigma() const
casacore::Array< casacore::Float > prf_p
Definition: DataSampling.h:132
const casacore::Array< casacore::Float > & getData() const
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Array< casacore::Float > dx_p
Definition: DataSampling.h:125
const casacore::Array< casacore::Float > & getPRF() const
virtual ~DataSampling()
casacore::String IDLScript_p
Definition: DataSampling.h:136
casacore::String getIDLScript() const
Definition: DataSampling.h:125