28 #ifndef COMPONENTS_TABULARSPECTRUM_H
29 #define COMPONENTS_TABULARSPECTRUM_H
38 class RecordInterface;
40 template <
class T>
class Vector;
virtual casacore::Bool convertUnit(casacore::String &errorMessage, const casacore::RecordInterface &record)
Convert the parameters of the spectral index object to the specified units.
casacore::Double minFreq_p
A 1-D Specialization of the Array class.
std::vector< double > Vector
casacore::MFrequency::Ref freqRef_p
void values(casacore::Vector< casacore::MFrequency::MVType > &freq, casacore::Vector< Flux< casacore::Double > > &flux) const
set/get the Tabular values
casacore::Vector< casacore::Double > qval_p
void setValues(const casacore::Vector< casacore::MFrequency::MVType > &frequencies, const casacore::Vector< Flux< casacore::Double > > &flux, const casacore::MFrequency::Ref &refFrame)
virtual ComponentType::SpectralShape type() const
return the actual spectral type ie., ComponentType::TABULAR_SPECTRUM
virtual void setRefFrequency(const casacore::MFrequency &newRefFreq)
set/get the reference frequency
casacore::Vector< casacore::Double > vval_p
virtual casacore::Vector< casacore::Double > parameters() const
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::Vector< casacore::Double > errors() const
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 ...
virtual ~TabularSpectrum()
The destructor does nothing special.
A Measure: wave characteristics.
casacore::Vector< casacore::Double > refVal_p
virtual void setParameters(const casacore::Vector< casacore::Double > &newSpectralParms)
casacore::Vector< casacore::Double > tabFreqVal_p
bool Bool
Define the standard types used by Casacore.
Base class for spectral models.
virtual SpectralModel * clone() const
Return a pointer to a copy of this object upcast to a SpectralModel object.
casacore::Vector< Flux< casacore::Double > > flux_p
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for consistant values.
casacore::Double maxFreq_p
SpectralShape
The different functional forms for the spectral variation.
virtual casacore::uInt nParameters() const
return the number of parameters.
casacore::Double referenceFreq_p
String: the storage and methods of handling collections of characters.
casacore::Vector< casacore::Double > uval_p
TabularSpectrum & operator=(const TabularSpectrum &other)
The assignment operator uses copy semantics.
virtual casacore::Bool toRecord(casacore::String &errorMessage, casacore::RecordInterface &record) const
Convert the class to an Record representation.
Abstract base class for Record classes.
casacore::Vector< casacore::Double > ival_p
virtual casacore::Bool fromRecord(casacore::String &errorMessage, const casacore::RecordInterface &record)
These functions convert between a casacore::Record and a SpectralIndex.
Models the spectral variation with a spectral index.
TabularSpectrum()
The default SpectralIndex has a reference frequency of 1 GHz in the LSR frame and a spectral index of...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
virtual void setErrors(const casacore::Vector< casacore::Double > &newSpectralErrs)