29 #ifndef COMPONENTS_SPECTRALFIT_H
30 #define COMPONENTS_SPECTRALFIT_H
38 template <
class T>
class Vector;
44 class SpectralElement;
130 return fit(y, x, &mask); }
146 return fit(sigma, y, x, &mask); }
182 #ifndef CASACORE_NO_AUTO_TEMPLATES
183 #include <components/SpectralComponents/SpectralFit2.tcc>
184 #endif //# CASACORE_NO_AUTO_TEMPLATES
SpectralFit()
Default constructor creates a default fitter without elements.
A 1-D Specialization of the Array class.
std::vector< double > Vector
~SpectralFit()
Destructor.
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
void clear()
Clear the list to be fitted (for a re-use of the SpectralFit object)
void setFitElement(casacore::uInt index, const SpectralElement &elem)
Set an element to be fitted.
Least Squares fitting of spectral elements to spectrum.
Describes (a set of related) spectral lines.
casacore::Bool fit(const casacore::Vector< MT > &y, const casacore::Vector< MT > &x, const casacore::Vector< casacore::Bool > &mask)
const SpectralList & list() const
Get the list being fitted.
bool Bool
Define the standard types used by Casacore.
void addFitElement(const SpectralElement &elem)
Add elements to be fitted.
casacore::uInt nIterations() const
Get the number of iterations last fit.
casacore::Double chiSq_p
ChiSq of last fit.
A set of SpectralElements.
SpectralFit & operator=(const SpectralFit &other)
Assignment (copy semantics)
SpectralList slist_p
Elements to be fitted.
casacore::uInt iter_p
Number of iterations last fit.
casacore::Bool fit(const casacore::Vector< MT > &sigma, const casacore::Vector< MT > &y, const casacore::Vector< MT > &x, const casacore::Vector< casacore::Bool > &mask)
casacore::Double chiSq() const
Get ChiSq of the last fit.
casacore::Bool fit(const casacore::Vector< MT > &sigma, const casacore::Vector< MT > &y, const casacore::Vector< MT > &x)
Fit the elements as given by the specified spectral elements at the frequencies x with values y and w...
casacore::Bool fit(const casacore::Vector< MT > &y, const casacore::Vector< MT > &x)
Fit the elements as given by the specified spectral elements at the frequencies x with values y...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.