casa
5.7.0-16
|
Describes a polynomial spectral profile. More...
#include <PolynomialSpectralElement.h>
Public Member Functions | |
PolynomialSpectralElement () | |
Useless constructor for anythong but allocating memory in a casacore::Vector etc. More... | |
PolynomialSpectralElement (const casacore::uInt n) | |
Construct an n-degree polynomial. More... | |
PolynomialSpectralElement (const casacore::Vector< casacore::Double > ¶m) | |
Construct the given tp with the given param. More... | |
PolynomialSpectralElement (const PolynomialSpectralElement &other) | |
Copy constructor (deep copy) More... | |
~PolynomialSpectralElement () | |
SpectralElement * | clone () const |
casacore::uInt | getDegree () const |
Get the degree of polynomial. More... | |
Public Member Functions inherited from casa::SpectralElement | |
virtual | ~SpectralElement () |
virtual casacore::Double | operator() (const casacore::Double x) const |
Evaluate the value of the element at x. More... | |
casacore::Bool | operator== (const SpectralElement &other) const |
virtual casacore::Double | operator[] (const casacore::uInt n) const |
Get parameter n. More... | |
SpectralElement::Types | getType () const |
Get type of this element. More... | |
void | get (casacore::Vector< casacore::Double > ¶ms) const |
Get all parameters. More... | |
casacore::Vector < casacore::Double > | get () const |
void | getError (casacore::Vector< casacore::Double > &err) const |
Get error estimates of parameters. More... | |
casacore::Vector < casacore::Double > | getError () const |
casacore::uInt | getOrder () const |
Get the order (i.e. More... | |
virtual void | setError (const casacore::Vector< casacore::Double > &err) |
Set the error fields. More... | |
virtual void | fix (const casacore::Vector< casacore::Bool > &fix) |
Set fixed parameters (true) or unset them (false) More... | |
const casacore::Vector < casacore::Bool > & | fixed () const |
Get the fix state[s]. More... | |
virtual casacore::Bool | toRecord (casacore::RecordInterface &out) const |
Save to a record. More... | |
virtual void | set (const casacore::Vector< casacore::Double > ¶ms) |
set parameters More... | |
Describes a polynomial spectral profile.
Public interface
From polynomial and spectral line and element
The PolynomialSpectralElement class describes a polynomial spectral profile.
To have a container for data describing a polynomial spectral profile for fitting to an observed spectrum
Definition at line 66 of file PolynomialSpectralElement.h.
casa::PolynomialSpectralElement::PolynomialSpectralElement | ( | ) |
Useless constructor for anythong but allocating memory in a casacore::Vector etc.
|
explicit |
Construct an n-degree polynomial.
casa::PolynomialSpectralElement::PolynomialSpectralElement | ( | const casacore::Vector< casacore::Double > & | param | ) |
Construct the given tp with the given param.
casa::PolynomialSpectralElement::PolynomialSpectralElement | ( | const PolynomialSpectralElement & | other | ) |
casa::PolynomialSpectralElement::~PolynomialSpectralElement | ( | ) |
|
virtual |
Implements casa::SpectralElement.
casacore::uInt casa::PolynomialSpectralElement::getDegree | ( | ) | const |
Get the degree of polynomial.