28 #ifndef COMPONENTS_SPECTRALINDEX_H
29 #define COMPONENTS_SPECTRALINDEX_H
38 class RecordInterface;
40 template <
class T>
class Vector;
void setIndex(const casacore::Double &newIndex)
virtual void setErrors(const casacore::Vector< casacore::Double > &newSpectralErrs)
std::vector< double > Vector
virtual casacore::Bool convertUnit(casacore::String &errorMessage, const casacore::RecordInterface &record)
Convert the parameters of the spectral index object to the specified units.
virtual void setParameters(const casacore::Vector< casacore::Double > &newSpectralParms)
virtual casacore::Bool toRecord(casacore::String &errorMessage, casacore::RecordInterface &record) const
Convert the class to an Record representation.
casacore::Double itsIndex
A Measure: wave characteristics.
virtual ~SpectralIndex()
The destructor does nothing special.
const casacore::Vector< casacore::Double > & stokesIndex() const
casacore::Double itsError
virtual casacore::Double sample(const casacore::MFrequency ¢erFrequency) const
Return the scaling factor that indicates what proportion of the flux is at the specified frequency...
virtual casacore::uInt nParameters() const
return the number of parameters.
virtual void sampleStokes(const casacore::MFrequency ¢erFrequency, casacore::Vector< casacore::Double > &iquv) const
return full casacore::Stokes version especially for models which have different frequency dependence ...
SpectralIndex()
The default SpectralIndex has a reference frequency of 1 GHz in the LSR frame and a spectral index of...
virtual casacore::Bool fromRecord(casacore::String &errorMessage, const casacore::RecordInterface &record)
These functions convert between a casacore::Record and a SpectralIndex.
bool Bool
Define the standard types used by Casacore.
Base class for spectral models.
SpectralIndex & operator=(const SpectralIndex &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.
SpectralShape
The different functional forms for the spectral variation.
void setStokesIndex(const casacore::Vector< casacore::Double > &newIndex)
Models the spectral variation with a spectral index.
virtual SpectralModel * clone() const
Return a pointer to a copy of this object upcast to a SpectralModel object.
String: the storage and methods of handling collections of characters.
casacore::Vector< casacore::Double > itsStokesIndex
Abstract base class for Record classes.
virtual casacore::Vector< casacore::Double > parameters() const
virtual ComponentType::SpectralShape type() const
return the actual spectral type ie., ComponentType::SPECTRAL_INDEX
virtual casacore::Vector< casacore::Double > errors() const
const casacore::Double & index() const
set/get the spectral index.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.