casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PowerLogPolynomialSpectralElement.h
Go to the documentation of this file.
1 //# SpectralElement.h: Describes (a set of related) spectral lines
2 //# Copyright (C) 2001,2003,2004
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 addressed 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: SpectralElement.h 20652 2009-07-06 05:04:32Z Malte.Marquarding $
28 
29 #ifndef COMPONENTS_POWERLOGPOLYNOMIALSPECTRALELEMENT_H
30 #define COMPONENTS_POWERLOGPOLYNOMIALSPECTRALELEMENT_H
31 
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // Describes the function most often used for determining spectral index plus higher order terms:
38 // y = c_0 * x**( c_1 + c_2*ln(x) + c_3*ln(x)**2 + ... )
39 // where c_1 is the traditional spectral index (alpha).
40 // </summary>
41 
42 // <use visibility=export>
43 
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="tSpectralFit" demos="">
45 // </reviewed>
46 
47 // <prerequisite>
48 // <li> <linkto module=SpectralElement>SpectralElement</linkto> module
49 // </prerequisite>
50 //
51 // <etymology>
52 // From power law, logarithm, and polynomial and spectral line and element
53 // </etymology>
54 //
55 // <synopsis>
56 // Describes a function that can be used to fit for spectral index and higher order terms
57 
58 // </synopsis>
59 //
60 // <example>
61 // </example>
62 //
63 // <motivation>
64 // To have a spectral element representing a spectral index function.
65 // </motivation>
66 
67 
69 public:
70 
71  /*
72  // Constructor. The n coefficients c_i to be solved for are
73  // c_0 * nu**(c_1 + c_2*log(x) + c_3*log(x)**2 + ... + c_(n-1)*log(x)**(n - 2))
74  explicit PowerLogPolynomialSpectralElement(casacore::uInt n);
75 */
76  // Construct with the given parameters. See above constructor for order in which the parameters should
77  // be supplied.
79 
80  // Copy constructor (deep copy)
82 
84 
87  );
88 
89  SpectralElement* clone() const;
90 /*
91 private:
92  void _makeFunction();
93 */
94 };
95 
96 std::ostream &operator<<(std::ostream& os, const PowerLogPolynomialSpectralElement& elem);
97 
98 
99 } //# NAMESPACE CASA - END
100 
101 #endif
102 
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
PowerLogPolynomialSpectralElement & operator=(const PowerLogPolynomialSpectralElement &other)
Describes (a set of related) spectral lines.
SpectralElement * clone() const
PowerLogPolynomialSpectralElement(casacore::uInt n)
Describes the function most often used for determining spectral index plus higher order terms: y = c_...