28 #ifndef COMPONENTS_GAUSSIANSPECTRALELEMENT_H
29 #define COMPONENTS_GAUSSIANSPECTRALELEMENT_H
casacore::Double getSigmaErr() const
static casacore::Double sigmaFromFWHM(const casacore::Double fwhm)
Sigma to FWHM Convert from sigma to FWHM and vice versa.
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
~GaussianSpectralElement()
Destructor.
casacore::Bool toRecord(casacore::RecordInterface &out) const
Save to a record.
void setFWHM(casacore::Double fwhm)
casacore::Double getSigma() const
Assignment (copy semantics)
SpectralElement * clone() const
Describes (a set of related) spectral lines.
casacore::Double getFWHM() const
static casacore::Double sigmaToFWHM(const casacore::Double sigma)
virtual void fix(const casacore::Vector< casacore::Bool > &fix)
Set fixed parameters (true) or unset them (false)
Abstract base class that describes a spectral profile that can be parameterized by a peak value (ampl...
void set(const casacore::Vector< casacore::Double > &v)
Get error estimates of parameters.
bool Bool
Define the standard types used by Casacore.
casacore::Double getFWHMErr() const
casacore::Bool fixedSigma() const
static const casacore::Double SigmaToFWHM
Sigma to FWHM conversion factor.
casacore::Double getIntegral() const
get the integral from -inf to inf
GaussianSpectralElement()
Default constructor creates a default Gaussian element with an amplitude of 1; an integral (sigma=2sq...
Abstract base class for Record classes.
void setSigma(casacore::Double sigma)
void fixSigma(const casacore::Bool fix=true)
Describes a Gaussian spectral line.
void _set(const casacore::Vector< casacore::Double > &v)
need to overrride SpectralElement::_set() because _param[2] is sigma but the second param of the corr...