28 #ifndef COMPONENTS_CONSTANTSPECTRUM_H
29 #define COMPONENTS_CONSTANTSPECTRUM_H
38 class RecordInterface;
40 template <
class T>
class Vector;
virtual void setParameters(const casacore::Vector< casacore::Double > &newSpectralParms)
virtual SpectralModel * clone() const
Return a pointer to a copy of this object upcast to a SpectralModel object.
std::vector< double > Vector
virtual void sampleStokes(const casacore::MFrequency ¢erFrequency, casacore::Vector< casacore::Double > &iquv) const
Original values returned.
virtual casacore::Bool toRecord(casacore::String &errorMessage, casacore::RecordInterface &record) const
Convert the class to an Record representation.
Model the spectral variation with a constant.
A Measure: wave characteristics.
virtual casacore::Bool convertUnit(casacore::String &errorMessage, const casacore::RecordInterface &record)
Convert the parameters of the spectrum to the specified units.
virtual casacore::Vector< casacore::Double > parameters() const
virtual ~ConstantSpectrum()
The destructor does nothing.
virtual ComponentType::SpectralShape type() const
return the actual spectral type.
ConstantSpectrum()
The default constructor is the only one you really need as this class has no parameters! ...
bool Bool
Define the standard types used by Casacore.
Base class for spectral models.
virtual casacore::Bool fromRecord(casacore::String &errorMessage, const casacore::RecordInterface &record)
These functions convert between a casacore::Record and a ConstantSpectrum.
virtual casacore::uInt nParameters() const
return the number of parameters.
virtual void setErrors(const casacore::Vector< casacore::Double > &newSpectralErrs)
SpectralShape
The different functional forms for the spectral variation.
virtual casacore::Vector< casacore::Double > errors() const
ConstantSpectrum & operator=(const ConstantSpectrum &other)
The assignment operator uses copy semantics.
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for consistant values.
String: the storage and methods of handling collections of characters.
virtual casacore::Double sample(const casacore::MFrequency ¢erFrequency) const
Return the scaling factor that indicates the flux is at the specified frequency assuming the flux at ...
Abstract base class for Record classes.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.