28 #ifndef COMPONENTS_PCFSPECTRALELEMENT_H
29 #define COMPONENTS_PCFSPECTRALELEMENT_H
casacore::Bool fixedFWHM() const
virtual casacore::Double getFWHM() const =0
void setAmpl(const casacore::Double ampl)
void set(const casacore::Vector< casacore::Double > ¶m)
Get error estimates of parameters.
casacore::Double getCenterErr() const
Get center value error estimate.
void fixCenter(const casacore::Bool fix=true)
void fixAmpl(const casacore::Bool fix=true)
virtual Type type()
Return the type enum.
virtual casacore::Double getFWHMErr() const =0
virtual casacore::Double getWidth() const
Get the width.
virtual casacore::Double getIntegralErr() const
virtual ~PCFSpectralElement()
Destructor.
casacore::Double getAmplErr() const
Get amplitude error estimate.
virtual void setWidth(const casacore::Double width)
Describes (a set of related) spectral lines.
casacore::Bool fixedCenter() const
casacore::Bool fixedWidth() const
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...
virtual casacore::Double getIntegral() const =0
get the integral from -inf to inf
void fixWidth(const casacore::Bool fix=true)
LatticeExprNode amp(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds sqrt(left^2+right^2).
bool Bool
Define the standard types used by Casacore.
virtual casacore::Double getWidthErr() const
Get the width error estimate.
casacore::Bool fixedAmpl() const
String: the storage and methods of handling collections of characters.
PCFSpectralElement(SpectralElement::Types type)
ParamType
to help avoid having to hard code parameter indices
Types
Supported spectral components.
casacore::Double getCenter() const
Get center value.
casacore::Double getAmpl() const
PCFSpectralElement& operator=(const PCFSpectralElement &other);.
void setCenter(const casacore::Double center)
void fixFWHM(const casacore::Bool fix=true)
void fixByString(const casacore::String &s)
fix parameters via encoded string.