casa
5.7.0-16
|
Describes the often used for determining spectral index plus higher order terms: y = log (S_x) = ln(c_0) + c_1*ln(x) + c_2*ln(x)**2 + c_3*ln(x)**3 +... where c_1 is the traditional spectral index (alpha). More...
#include <LogTransformedPolynomialSpectralElement.h>
Describes the often used for determining spectral index plus higher order terms: y = log (S_x) = ln(c_0) + c_1*ln(x) + c_2*ln(x)**2 + c_3*ln(x)**3 +... where c_1 is the traditional spectral index (alpha).
Public interface
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. The implementation simply subclasses PolynomialSpectralElement since that's all this function really is, whicht the exception the the lhs is ln(y) not y. This means it's the fitter configurator's responsibility to pass in the ln of the actual ordinate values and the ln of the abscissa values, not the ordinate and abscissa values themselves. Essentially, this class differs from PolynomialSpectralElement in its type and its stream operator.
To have a spectral element representing a spectral index function.
Definition at line 73 of file LogTransformedPolynomialSpectralElement.h.
|
explicit |
Constructor.
The n coefficients c_i to be solved for are c_0 + c_1 * ln(x) + c_2 * ln(x)**2 + c_3 * ln(x)**3 +... c_(n-1)*ln(x)**(n-1) where x = nu/nu0. order</order> is the polynomial, so the actual function will have order+1 coefficients
casa::LogTransformedPolynomialSpectralElement::LogTransformedPolynomialSpectralElement | ( | const casacore::Vector< casacore::Double > & | param | ) |
Construct with the given parameters.
See above constructor for order in which the parameters should be supplied.
casa::LogTransformedPolynomialSpectralElement::LogTransformedPolynomialSpectralElement | ( | const LogTransformedPolynomialSpectralElement & | other | ) |
Copy constructor (deep copy)
casa::LogTransformedPolynomialSpectralElement::~LogTransformedPolynomialSpectralElement | ( | ) |
|
virtual |
Implements casa::SpectralElement.
LogTransformedPolynomialSpectralElement& casa::LogTransformedPolynomialSpectralElement::operator= | ( | const LogTransformedPolynomialSpectralElement & | other | ) |