Go to the documentation of this file.
28 #ifndef SCIMATH_FITGAUSSIAN_H
29 #define SCIMATH_FITGAUSSIAN_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/Matrix.h>
33 #include <casacore/casa/Logging/LogIO.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
A 2-D Specialization of the Array class.
void expandRetryMatrix(uInt rowstoadd)
Add one or more rows to the retry matrix.
void setNumGaussians(uInt numgaussians)
Adjust the number of gaussians to fit.
T chisquared()
Return the chi squared of the fit.
Bool converged()
Returns True if the fit (eventually) converged to a value.
Multidimensional fitter class for Gaussians.
const Matrix< T > & errors()
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.
ostream-like interface to creating log messages.
void setRetryFactors()
Set the retry factors, the values that are added/multiplied with the first estimate on subsequent att...
FitGaussian()
Create the fitter.
Matrix< T > itsSolutionParameters
The solutions to the fit.
void setDimensions(uInt dimensions)
Adjust the number of dimensions.
Bool & mask(uInt gaussian, uInt parameter)
Mask out some parameters so that they are not modified during fitting.
const Matrix< T > & solution()
Allow access to the fit parameters from this class.
void setFirstEstimate(const Matrix< T > &estimate)
Set the initial estimate (the starting point of the first fit.)
this file contains all the compiler specific defines
void setMaxTime(Double maxtime)
Set the maximum amount of time to spend (in seconds).
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.
Matrix< T > itsSolutionErrors
The errors on the solution parameters.
Matrix< T > defaultRetryMatrix()
Sets the retry matrix to a default value.
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
uInt nRetryFactors()
Return the number of retry options available.
void setMaxRetries(uInt nretries)
Set the maximum number of retries.
Matrix< T > itsFirstEstimate
uInt countFreeParameters()
Find the number of unmasked parameters to be fit.