29 #ifndef COMPONENTS_SPECTRALELEMENT_H
30 #define COMPONENTS_SPECTRALELEMENT_H
180 virtual std::shared_ptr<casacore::Function<casacore::Double, casacore::Double> >
_getFunction()
const {
198 std::shared_ptr<casacore::Function<casacore::Double, casacore::Double> >
_function;
virtual void setError(const casacore::Vector< casacore::Double > &err)
Set the error fields.
Types _type
type of element
casacore::uInt getOrder() const
Get the order (i.e.
virtual casacore::Double operator[](const casacore::uInt n) const
Get parameter n.
bool nearAbs(const SpectralElement &s1, const SpectralElement &s2, const casacore::Double tol)
virtual casacore::Double operator()(const casacore::Double x) const
Evaluate the value of the element at x.
casacore::Bool operator==(const SpectralElement &other) const
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
SpectralElement::Types getType() const
Get type of this element.
virtual Type type()
Return the type enum.
virtual SpectralElement * clone() const =0
static const casacore::String & fromType(SpectralElement::Types tp)
Get a string from the type.
casacore::Vector< casacore::Double > _errors
The errors of the parameters.
casacore::Vector< casacore::Double > _params
The parameters of the function.
Describes (a set of related) spectral lines.
log transformed polynomial
casacore::Vector< casacore::Bool > _fixed
The indication if the parameter has to be fixed (true) or solved (false).
virtual std::shared_ptr< casacore::Function< casacore::Double, casacore::Double > > _getFunction() const
std::shared_ptr< casacore::Function< casacore::Double, casacore::Double > > _function
casacore::Vector< casacore::Double > getError() const
Numerical functional interface class.
void _set(const casacore::Vector< casacore::Double > ¶ms)
virtual ~SpectralElement()
virtual void fix(const casacore::Vector< casacore::Bool > &fix)
Set fixed parameters (true) or unset them (false)
static const casacore::String * allTypes(casacore::Int &nall, const SpectralElement::Types *&typ)
Get all the types available as casacore::String and codes, and number available.
const casacore::Vector< casacore::Bool > & fixed() const
Get the fix state[s].
bool Bool
Define the standard types used by Casacore.
virtual void set(const casacore::Vector< casacore::Double > ¶ms)
set parameters
Any compiled string functional.
static casacore::Bool toType(SpectralElement::Types &tp, const casacore::String &typName)
Get a type from a (non-case sensitive; minimum match) String.
bool near(const SpectralElement &s1, const SpectralElement &s2, const casacore::Double tol)
String: the storage and methods of handling collections of characters.
Types
Supported spectral components.
Abstract base class for Record classes.
void _setType(const Types type)
void _setFunction(const std::shared_ptr< casacore::Function< casacore::Double, casacore::Double > > &f)
SpectralElement & operator=(const SpectralElement &other)
virtual casacore::Bool toRecord(casacore::RecordInterface &out) const
Save to a record.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.