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>
T BaseType
Template base type.
static const Double CRITERIUM
Default convergence criterium (0.001)
virtual ~NonLinearFit()
Destructor.
uInt curiter_p
Current iteration number.
Double getCriteria() const
getCriteria() queries the current criteria
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.
static const uInt MAXITER
Default maximum number of iterations (30)
NonLinearFit & operator=(const NonLinearFit &other)
Assignment (deep copy)
NonLinearFit(Bool svd=False)
Create a fitter: the normal way to generate a fitter object.
void setMaxIter(uInt maxIter=MAXITER)
setMaxIter() sets the maximum number of iterations to do before stopping.
void setCriteria(const Double criteria=CRITERIUM)
setCriteria() sets the convergence criteria.
uInt getMaxIter() const
getMaxIter() queries what the maximum number of iterations currently is
Bool converged() const
Check to see if the fit has converged.
uInt currentIteration() const
currentIteration() queries what the current iteration is
uInt maxiter_p
Maximum number of iterations.
NonLinearFit(const NonLinearFit &other)
Copy constructor (deep copy)
Double criterium_p
Convergence criteria.
Bool converge_p
Has fit converged.
this file contains all the compiler specific defines
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.