casa
$Rev:20696$
|
Describes a Gaussian spectral line. More...
#include <GaussianSpectralElement.h>
Public Member Functions | |
GaussianSpectralElement () | |
Default constructor creates a default Gaussian element with an amplitude of 1; an integral (sigma=2sqrt(ln2)/pi) of 1; a central frequency of zero. | |
GaussianSpectralElement (const Double ampl, const Double center, const Double sigma) | |
Construct with given type and values. | |
GaussianSpectralElement (const Vector< Double > ¶m) | |
Construct the given tp with the given param. | |
GaussianSpectralElement (const GaussianSpectralElement &other) | |
Copy constructor (deep copy) | |
~GaussianSpectralElement () | |
Destructor. | |
SpectralElement * | clone () const |
GaussianSpectralElement & | operator= (const GaussianSpectralElement &other) |
Assignment (copy semantics) | |
Double | operator() (const Double x) const |
Evaluate the value of the element at x. | |
Double | getSigma () const |
Double | getFWHM () const |
Get the width. | |
Double | getSigmaErr () const |
Double | getFWHMErr () const |
Get the width error estimate. | |
void | setSigma (Double sigma) |
void | setFWHM (Double fwhm) |
void | fixSigma (const Bool fix=True) |
Bool | fixedSigma () const |
Double | getIntegral () const |
get the integral from -inf to inf | |
Bool | toRecord (RecordInterface &out) const |
Save to a record. | |
Static Public Member Functions | |
static Double | sigmaFromFWHM (const Double fwhm) |
Sigma to FWHM Convert from sigma to FWHM and vice versa. | |
static Double | sigmaToFWHM (const Double sigma) |
Static Public Attributes | |
static const Double | SigmaToFWHM |
Sigma to FWHM conversion factor. |
Describes a Gaussian spectral line.
Public interface
From Gaussian and spectral line and element
The GaussianSpectralElement class describes a Gaussian spectral line.
To have a container for data descrbing a Gaussian spectral profile for fitting to an observed spectrum
Definition at line 64 of file GaussianSpectralElement.h.
Default constructor creates a default Gaussian element with an amplitude of 1; an integral (sigma=2sqrt(ln2)/pi)
of 1; a central frequency of zero.
casa::GaussianSpectralElement::GaussianSpectralElement | ( | const Double | ampl, |
const Double | center, | ||
const Double | sigma | ||
) |
casa::GaussianSpectralElement::GaussianSpectralElement | ( | const Vector< Double > & | param | ) |
Destructor.
SpectralElement* casa::GaussianSpectralElement::clone | ( | ) | const [virtual] |
Implements casa::SpectralElement.
void casa::GaussianSpectralElement::fixSigma | ( | const Bool | fix = True | ) |
Double casa::GaussianSpectralElement::getFWHM | ( | ) | const [virtual] |
Get the width.
Reimplemented from casa::PCFSpectralElement.
Double casa::GaussianSpectralElement::getFWHMErr | ( | ) | const [virtual] |
Get the width error estimate.
Reimplemented from casa::PCFSpectralElement.
Double casa::GaussianSpectralElement::getIntegral | ( | ) | const [virtual] |
get the integral from -inf to inf
Implements casa::PCFSpectralElement.
Evaluate the value of the element at x.
Implements casa::SpectralElement.
GaussianSpectralElement& casa::GaussianSpectralElement::operator= | ( | const GaussianSpectralElement & | other | ) |
void casa::GaussianSpectralElement::setFWHM | ( | Double | fwhm | ) | [virtual] |
Reimplemented from casa::PCFSpectralElement.
void casa::GaussianSpectralElement::setSigma | ( | Double | sigma | ) |
static Double casa::GaussianSpectralElement::sigmaFromFWHM | ( | const Double | fwhm | ) | [static] |
Sigma to FWHM Convert from sigma to FWHM and vice versa.
static Double casa::GaussianSpectralElement::sigmaToFWHM | ( | const Double | sigma | ) | [static] |
Bool casa::GaussianSpectralElement::toRecord | ( | RecordInterface & | out | ) | const [virtual] |
Save to a record.
For Gaussian elements, the width is defined as a FWHM in the record interface.
Reimplemented from casa::SpectralElement.
const Double casa::GaussianSpectralElement::SigmaToFWHM [static] |
Sigma to FWHM conversion factor.
Definition at line 69 of file GaussianSpectralElement.h.