28 #ifndef SCIMATH_FITGAUSSIAN_H
29 #define SCIMATH_FITGAUSSIAN_H
173 T maximumRMS = 1.0,
uInt maxiter = 1024,
174 T convcriteria = 0.0001);
177 T maximumRMS = 1.0,
uInt maxiter = 1024,
178 T convcriteria = 0.0001);
235 #ifndef CASACORE_NO_AUTO_TEMPLATES
236 #include <casacore/scimath/Fitting/FitGaussian.tcc>
237 #endif //# CASACORE_NO_AUTO_TEMPLATES
size_t nrow() const
The number of rows in the Matrix, i.e.
uInt countFreeParameters()
Find the number of unmasked parameters to be fit.
Bool converged()
Returns True if the fit (eventually) converged to a value.
Multidimensional fitter class for Gaussians.
void setNumGaussians(uInt numgaussians)
Adjust the number of gaussians to fit.
Matrix< T > fit(const Matrix< T > &pos, const Vector< T > &f, T maximumRMS=1.0, uInt maxiter=1024, T convcriteria=0.0001)
Run the fit, using the data provided in the arguments pos and f.
T chisquared()
Return the chi squared of the fit.
void setRetryFactors()
Set the retry factors, the values that are added/multiplied with the first estimate on subsequent att...
ostream-like interface to creating log messages.
const Matrix< T > & errors()
Matrix< T > itsSolutionParameters
The solutions to the fit.
FitGaussian()
Create the fitter.
const Matrix< T > & solution()
Allow access to the fit parameters from this class.
bool Bool
Define the standard types used by Casacore.
void setMaxTime(Double maxtime)
Set the maximum amount of time to spend (in seconds).
Bool & mask(uInt gaussian, uInt parameter)
Mask out some parameters so that they are not modified during fitting.
void setFirstEstimate(const Matrix< T > &estimate)
Set the initial estimate (the starting point of the first fit.)
Matrix< T > defaultRetryMatrix()
Sets the retry matrix to a default value.
void setDimensions(uInt dimensions)
Adjust the number of dimensions.
uInt nRetryFactors()
Return the number of retry options available.
Matrix< T > itsSolutionErrors
The errors on the solution parameters.
void correctParameters(Matrix< T > ¶meters)
Internal function for ensuring that parameters stay within their stated domains (see Gaussian2D and G...
T RMS()
Return the RMS of the fit.
void expandRetryMatrix(uInt rowstoadd)
Add one or more rows to the retry matrix.
Matrix< T > itsFirstEstimate
void setMaxRetries(uInt nretries)
Set the maximum number of retries.