ROOT » MATH » MATHMORE » ROOT::Math::LSResidualFunc

class ROOT::Math::LSResidualFunc: public ROOT::Math::IGradientFunctionMultiDim

    LSResidualFunc class description.
    Internal class used for accessing the residuals of the Least Square function
    and their derivates which are estimated numerically using GSL numerical derivation.
    The class contains a pointer to the fit method function and an index specifying
    the i-th residual and wraps it in a multi-dim gradient function interface
    The class is used by ROOT::Math::GSLNLSMinimizer (GSL non linear least square fitter)

    @ingroup MultiMin

Function Members (Methods)

virtual doubleDoDerivative(const double* x, unsigned int icoord) const
virtual doubleDoEval(const double* x) const

Data Members

const ROOT::Math::FitMethodFunction*fChi2
unsigned intfIndex
vector<double>fX2cached vector

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

default ctor (required by CINT)
LSResidualFunc(const ROOT::Math::FitMethodFunction& func, unsigned int i)
LSResidualFunc(const ROOT::Math::LSResidualFunc& rhs)
 copy ctor
operator=(const ROOT::Math::LSResidualFunc& rhs)
IMultiGenFunction * Clone() const
unsigned int NDim() const
{ return fChi2->NDim(); }
void Gradient(const double* x, double* g) const
double DoEval(const double* x) const
double DoDerivative(const double* x, unsigned int icoord) const
return  ROOT::Math::Derivator::Eval(*this, x, icoord, 1E-8);