//# SpectralElement.h: Describes (a set of related) spectral lines //# Copyright (C) 2001,2003,2004 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# the Free Software Foundation; either version 2 of the License, or (at your //# option) any later version. //# //# This library is distributed in the hope that it will be useful, but WITHOUT //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public //# License for more details. //# //# You should have received a copy of the GNU Library General Public License //# along with this library; if not, write to the Free Software Foundation, //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. //# //# Correspondence concerning AIPS++ should be addressed as follows: //# Internet email: aips2-request@nrao.edu. //# Postal address: AIPS++ Project Office //# National Radio Astronomy Observatory //# 520 Edgemont Road //# Charlottesville, VA 22903-2475 USA //# //# //# $Id: SpectralElement.h 20652 2009-07-06 05:04:32Z Malte.Marquarding $ #ifndef COMPONENTS_POWERLOGPOLYNOMIALSPECTRALELEMENT_H #define COMPONENTS_POWERLOGPOLYNOMIALSPECTRALELEMENT_H #include namespace casa { //# NAMESPACE CASA - BEGIN // // Describes the function most often used for determining spectral index plus higher order terms: // y = c_0 * x**( c_1 + c_2*ln(x) + c_3*ln(x)**2 + ... ) // where c_1 is the traditional spectral index (alpha). // // // // // //
  • SpectralElement module // // // // From power law, logarithm, and polynomial and spectral line and element // // // // Describes a function that can be used to fit for spectral index and higher order terms // // // // // // // To have a spectral element representing a spectral index function. // class PowerLogPolynomialSpectralElement: public SpectralElement { public: /* // Constructor. The n coefficients c_i to be solved for are // c_0 * nu**(c_1 + c_2*log(x) + c_3*log(x)**2 + ... + c_(n-1)*log(x)**(n - 2)) explicit PowerLogPolynomialSpectralElement(uInt n); */ // Construct with the given parameters. See above constructor for order in which the parameters should // be supplied. PowerLogPolynomialSpectralElement(const Vector ¶m); // Copy constructor (deep copy) PowerLogPolynomialSpectralElement(const PowerLogPolynomialSpectralElement &other); ~PowerLogPolynomialSpectralElement(); PowerLogPolynomialSpectralElement &operator=( const PowerLogPolynomialSpectralElement& other ); SpectralElement* clone() const; /* private: void _makeFunction(); */ }; ostream &operator<<(ostream& os, const PowerLogPolynomialSpectralElement& elem); } //# NAMESPACE CASA - END #endif