GradFunc2D Class Reference

Inheritance diagram for GradFunc2D:

ROOT::Math::IParametricGradFunctionMultiDim ROOT::Math::IParametricFunctionMultiDim ROOT::Math::IParametricFunctionMultiDim ROOT::Math::IBaseParam ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IBaseParam ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IBaseParam ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IBaseParam ROOT::Math::IBaseFunctionMultiDim List of all members.

Public Member Functions

void SetParameters (const double *p)
const doubleParameters () const
ROOT::Math::IMultiGenFunctionClone () 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]

Detailed Description

Definition at line 374 of file testFit.cxx.


Member Function Documentation

void GradFunc2D::SetParameters ( const double p  )  [inline, virtual]

Set the parameter values

Parameters:
p vector of doubles containing the parameter values.
to be defined: can user change number of params ? At the moment no.

Implements ROOT::Math::IBaseParam.

Definition at line 376 of file testFit.cxx.

References copy(), fp, and NPar().

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().


Member Data Documentation

double GradFunc2D::fp[5] [private]

Definition at line 413 of file testFit.cxx.

Referenced by Clone(), Parameters(), and SetParameters().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:30:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1