28 #ifndef SCIMATH_NONLINEARFIT_H
29 #define SCIMATH_NONLINEARFIT_H
245 #ifndef CASACORE_NO_AUTO_TEMPLATES
246 #include <casacore/scimath/Fitting/NonLinearFit.tcc>
247 #endif //# CASACORE_NO_AUTO_TEMPLATES
A 1-D Specialization of the Array class.
uInt getMaxIter() const
getMaxIter() queries what the maximum number of iterations currently is
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
T BaseType
Template base type.
Bool converge_p
Has fit converged.
void setCriteria(const Double criteria=CRITERIUM)
setCriteria() sets the convergence criteria.
NonLinearFit(Bool svd=False)
Create a fitter: the normal way to generate a fitter object.
uInt curiter_p
Current iteration number.
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.
NonLinearFit & operator=(const NonLinearFit &other)
Assignment (deep copy)
uInt maxiter_p
Maximum number of iterations.
void setMaxIter(uInt maxIter=MAXITER)
setMaxIter() sets the maximum number of iterations to do before stopping.
Generic base class for least-squares fit.
Class for non-linear least-squares fit.
bool Bool
Define the standard types used by Casacore.
A templated N-D Array class with zero origin. Array<T, Alloc> is a templated, N-dimensional, Array class. The origin is zero, but by default indices are zero-based. This Array class is the base class for the Vector, Matrix, and Cube subclasses.
Bool converged() const
Check to see if the fit has converged.
static const uInt MAXITER
Default maximum number of iterations (30)
virtual ~NonLinearFit()
Destructor.
Double getCriteria() const
getCriteria() queries the current criteria
static const Double CRITERIUM
Default convergence criterium (0.001)
Double criterium_p
Convergence criteria.
uInt currentIteration() const
currentIteration() queries what the current iteration is