Go to the documentation of this file.
28 #ifndef SCIMATH_NONLINEARFIT_H
29 #define SCIMATH_NONLINEARFIT_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/scimath/Fitting/GenericL2Fit.h>
245 #ifndef CASACORE_NO_AUTO_TEMPLATES
246 #include <casacore/scimath/Fitting/NonLinearFit.tcc>
247 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual Bool fitIt(Vector< typename FunctionTraits< T >::BaseType > &sol, const Array< typename FunctionTraits< T >::BaseType > &x, const Vector< typename FunctionTraits< T >::BaseType > &y, const Vector< typename FunctionTraits< T >::BaseType > *const sigma, const Vector< Bool > *const mask=0)=0
Generalised fitter.
uInt maxiter_p
Maximum number of iterations.
NonLinearFit(Bool svd=False)
Create a fitter: the normal way to generate a fitter object.
Bool converged() const
Check to see if the fit has converged.
uInt getMaxIter() const
getMaxIter() queries what the maximum number of iterations currently is
Bool converge_p
Has fit converged.
virtual ~NonLinearFit()
Destructor.
static const uInt MAXITER
Default maximum number of iterations (30)
void setCriteria(const Double criteria=CRITERIUM)
setCriteria() sets the convergence criteria.
Double criterium_p
Convergence criteria.
NonLinearFit & operator=(const NonLinearFit &other)
Assignment (deep copy)
uInt curiter_p
Current iteration number.
void setMaxIter(uInt maxIter=MAXITER)
setMaxIter() sets the maximum number of iterations to do before stopping.
Double getCriteria() const
getCriteria() queries the current criteria
Class for non-linear least-squares fit.
Generic base class for least-squares fit.
static const Double CRITERIUM
Default convergence criterium (0.001)
this file contains all the compiler specific defines
uInt currentIteration() const
currentIteration() queries what the current iteration is
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
template <class T, class U> class vector;
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
T BaseType
Template base type.