![]() |
ROOT 6.10/09 Reference Guide |
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 ROOT::Math::IGradientFunctionMultiDim. The class is used by ROOT::Math::GSLNLSMinimizer (GSL non linear least square fitter)
Definition at line 67 of file GSLNLSMinimizer.h.
Public Member Functions | |
LSResidualFunc () | |
LSResidualFunc (const ROOT::Math::FitMethodFunction &func, unsigned int i) | |
LSResidualFunc (const LSResidualFunc &rhs) | |
IMultiGenFunction * | Clone () const |
Clone a function. More... | |
void | FdF (const double *x, double &f, double *g) const |
Optimized method to evaluate at the same time the function value and derivative at a point x. More... | |
void | Gradient (const double *x, double *g) const |
Evaluate all the vector of function derivatives (gradient) at a point x. More... | |
unsigned int | NDim () const |
Retrieve the dimension of the function. More... | |
LSResidualFunc & | operator= (const LSResidualFunc &rhs) |
![]() | |
virtual | ~IGradientFunctionMultiDim () |
Virtual Destructor (no operations) More... | |
![]() | |
IBaseFunctionMultiDimTempl () | |
virtual | ~IBaseFunctionMultiDimTempl () |
virtual destructor More... | |
T | operator() (const T *x) const |
Evaluate the function at a point x[]. More... | |
![]() | |
virtual | ~IGradientMultiDim () |
virual destructor More... | |
double | Derivative (const double *x, unsigned int icoord=0) const |
Return the partial derivative with respect to the passed coordinate. More... | |
Private Member Functions | |
double | DoDerivative (const double *x, unsigned int icoord) const |
function to evaluate the derivative with respect each coordinate. More... | |
double | DoEval (const double *x) const |
Private Attributes | |
const ROOT::Math::FitMethodFunction * | fChi2 |
unsigned int | fIndex |
std::vector< double > | fX2 |
Additional Inherited Members | |
![]() | |
typedef IBaseFunctionMultiDim | BaseFunc |
typedef IGradientMultiDim | BaseGrad |
![]() | |
typedef IBaseFunctionMultiDimTempl< T > | BaseFunc |
#include <Math/GSLNLSMinimizer.h>
|
inline |
Definition at line 71 of file GSLNLSMinimizer.h.
|
inline |
Definition at line 75 of file GSLNLSMinimizer.h.
|
inline |
Definition at line 83 of file GSLNLSMinimizer.h.
|
inlinevirtual |
Clone a function.
Each derived class must implement their version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.
Definition at line 99 of file GSLNLSMinimizer.h.
|
inlineprivatevirtual |
function to evaluate the derivative with respect each coordinate.
To be implemented by the derived class
Implements ROOT::Math::IGradientMultiDim.
Definition at line 129 of file GSLNLSMinimizer.h.
|
inlineprivate |
Definition at line 125 of file GSLNLSMinimizer.h.
|
inlinevirtual |
Optimized method to evaluate at the same time the function value and derivative at a point x.
Often both value and derivatives are needed and it is often more efficient to compute them at the same time. Derived class should implement this method if performances play an important role and if it is faster to evaluate value and derivative at the same time
Reimplemented from ROOT::Math::IGradientFunctionMultiDim.
Definition at line 110 of file GSLNLSMinimizer.h.
|
inlinevirtual |
Evaluate all the vector of function derivatives (gradient) at a point x.
Derived classes must re-implement it if more efficient than evaluting one at a time
Reimplemented from ROOT::Math::IGradientFunctionMultiDim.
Definition at line 105 of file GSLNLSMinimizer.h.
|
inlinevirtual |
Retrieve the dimension of the function.
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.
Definition at line 103 of file GSLNLSMinimizer.h.
|
inline |
Definition at line 91 of file GSLNLSMinimizer.h.
|
private |
Definition at line 138 of file GSLNLSMinimizer.h.
|
private |
Definition at line 137 of file GSLNLSMinimizer.h.
|
mutableprivate |
Definition at line 139 of file GSLNLSMinimizer.h.