Inheritance diagram for GradFunc2D:
Public Member Functions | |
void | SetParameters (const double *p) |
const double * | Parameters () const |
ROOT::Math::IMultiGenFunction * | Clone () const |
unsigned int | NDim () const |
unsigned int | NPar () const |
void | ParameterGradient (const double *x, const double *, double *grad) const |
Private Member Functions | |
double | DoEvalPar (const double *x, const double *p) const |
double | DoParameterDerivative (const double *x, const double *p, unsigned int ipar) const |
Private Attributes | |
double | fp [5] |
Definition at line 374 of file testFit.cxx.
void GradFunc2D::SetParameters | ( | const double * | p | ) | [inline, virtual] |
Set the parameter values
p | vector of doubles containing the parameter values. |
Implements ROOT::Math::IBaseParam.
Definition at line 376 of file testFit.cxx.
const double* GradFunc2D::Parameters | ( | ) | const [inline, virtual] |
Access the parameter values
Implements ROOT::Math::IBaseParam.
Definition at line 377 of file testFit.cxx.
References fp.
ROOT::Math::IMultiGenFunction* GradFunc2D::Clone | ( | ) | const [inline, virtual] |
Clone a function. Each derived class must implement his version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 378 of file testFit.cxx.
References fp.
unsigned int GradFunc2D::NDim | ( | ) | const [inline, virtual] |
Retrieve the dimension of the function
Implements ROOT::Math::IBaseFunctionMultiDim.
Definition at line 383 of file testFit.cxx.
unsigned int GradFunc2D::NPar | ( | ) | const [inline, virtual] |
Return the number of Parameters
Implements ROOT::Math::IBaseParam.
Definition at line 384 of file testFit.cxx.
Referenced by DoParameterDerivative(), and SetParameters().
void GradFunc2D::ParameterGradient | ( | const double * | x, | |
const double * | , | |||
double * | grad | |||
) | const [inline, virtual] |
Evaluate the all the derivatives (gradient vector) of the function with respect to the parameters at a point x. It is optional to be implemented by the derived classes for better efficiency
Reimplemented from ROOT::Math::IParametricGradFunctionMultiDim.
Definition at line 386 of file testFit.cxx.
Referenced by DoParameterDerivative().
double GradFunc2D::DoEvalPar | ( | const double * | x, | |
const double * | p | |||
) | const [inline, private, virtual] |
Implementation of the evaluation function using the x values and the parameters. Must be implemented by derived classes
Implements ROOT::Math::IParametricFunctionMultiDim.
Definition at line 396 of file testFit.cxx.
double GradFunc2D::DoParameterDerivative | ( | const double * | x, | |
const double * | p, | |||
unsigned int | ipar | |||
) | const [inline, private, virtual] |
Evaluate the partial derivative w.r.t a parameter ipar , to be implemented by the derived classes
Implements ROOT::Math::IParametricGradFunctionMultiDim.
Definition at line 407 of file testFit.cxx.
References NPar(), and ParameterGradient().
double GradFunc2D::fp[5] [private] |
Definition at line 413 of file testFit.cxx.
Referenced by Clone(), Parameters(), and SetParameters().