casa::LogTransformedPolynomialSpectralElement Class Reference

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>

Inheritance diagram for casa::LogTransformedPolynomialSpectralElement:
casa::PolynomialSpectralElement casa::SpectralElement

List of all members.

Public Member Functions

 LogTransformedPolynomialSpectralElement (uInt order)
 Constructor.
 LogTransformedPolynomialSpectralElement (const Vector< Double > &param)
 Construct with the given parameters.
 LogTransformedPolynomialSpectralElement (const LogTransformedPolynomialSpectralElement &other)
 Copy constructor (deep copy).
 ~LogTransformedPolynomialSpectralElement ()
LogTransformedPolynomialSpectralElementoperator= (const LogTransformedPolynomialSpectralElement &other)
SpectralElementclone () const

Detailed Description

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).

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd
Test programs:
tSpectralFit

Prerequisite

Etymology

From power law, logarithm, and polynomial and spectral line and element

Synopsis

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.

Example

Motivation

To have a spectral element representing a spectral index function.

Definition at line 73 of file LogTransformedPolynomialSpectralElement.h.


Constructor & Destructor Documentation

casa::LogTransformedPolynomialSpectralElement::LogTransformedPolynomialSpectralElement ( uInt  order  )  [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 Vector< 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 (  ) 

Member Function Documentation

SpectralElement* casa::LogTransformedPolynomialSpectralElement::clone (  )  const [virtual]

Reimplemented from casa::PolynomialSpectralElement.

LogTransformedPolynomialSpectralElement& casa::LogTransformedPolynomialSpectralElement::operator= ( const LogTransformedPolynomialSpectralElement other  ) 

Reimplemented from casa::SpectralElement.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1