Interface (abstract class) for parametric one-dimensional gradient functions providing in addition to function evaluation with respect the coordinates also the gradient with respect to the parameters, via the method ParameterGradient.
It is a derived class from ROOT::Math::IParametricFunctionOneDim.
The pure private virtual method DoParameterGradient must be implemented by the derived classes in addition to those inherited by the base abstract classes.
Definition at line 327 of file IParamFunction.h.
Public Types | |
typedef IParametricFunctionOneDim::BaseFunc | BaseFunc |
typedef IGradientFunctionOneDim | BaseGradFunc |
typedef IParametricFunctionOneDim | BaseParamFunc |
Public Types inherited from ROOT::Math::IParametricFunctionOneDim | |
typedef IBaseFunctionOneDim | BaseFunc |
Public Types inherited from ROOT::Math::IBaseFunctionOneDim | |
typedef IBaseFunctionOneDim | BaseFunc |
Public Member Functions | |
~IParametricGradFunctionOneDim () override | |
Virtual Destructor (no operations) | |
double | ParameterDerivative (const double *x, const double *p, unsigned int ipar=0) const |
Partial derivative with respect a parameter Compatibility interface with multi-dimensional functions. | |
double | ParameterDerivative (const double *x, unsigned int ipar=0) const |
Evaluate partial derivative using cached parameter values (multi-dim like interface) | |
double | ParameterDerivative (double x, const double *p, unsigned int ipar=0) const |
Partial derivative with respect a parameter. | |
double | ParameterDerivative (double x, unsigned int ipar=0) const |
Evaluate partial derivative using cached parameter values. | |
void | ParameterGradient (const double *x, const double *p, double *grad) const |
Compatibility interface with multi-dimensional functions. | |
void | ParameterGradient (const double *x, double *grad) const |
Evaluate all derivatives using cached parameter values (multi-dim like interface) | |
virtual void | ParameterGradient (double x, const double *p, double *grad) const |
Evaluate the derivatives of the function with respect to the parameters at a point x. | |
void | ParameterGradient (double x, double *grad) const |
Evaluate all derivatives using cached parameter values. | |
Public Member Functions inherited from ROOT::Math::IParametricFunctionOneDim | |
double | operator() (const double *x, const double *p) const |
multidim-like interface | |
double | operator() (double x, const double *p) const |
Evaluate function at a point x and for given parameters p. | |
Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim | |
virtual | ~IBaseFunctionOneDim ()=default |
virtual IBaseFunctionOneDim * | Clone () const =0 |
Clone a function. | |
virtual bool | HasGradient () const |
double | operator() (const double *x) const |
Evaluate the function at a point x[]. | |
double | operator() (double x) const |
Evaluate the function at a point x. | |
Public Member Functions inherited from ROOT::Math::IBaseParam | |
virtual | ~IBaseParam () |
Virtual Destructor (no operations) | |
virtual unsigned int | NPar () const =0 |
Return the number of Parameters. | |
virtual std::string | ParameterName (unsigned int i) const |
Return the name of the i-th parameter (starting from zero) Overwrite if want to avoid the default name ("Par_0, Par_1, ...") | |
virtual const double * | Parameters () const =0 |
Access the parameter values. | |
virtual void | SetParameters (const double *p)=0 |
Set the parameter values. | |
Private Member Functions | |
virtual double | DoParameterDerivative (double x, const double *p, unsigned int ipar) const =0 |
Evaluate the gradient, to be implemented by the derived classes. | |
#include <Math/IParamFunction.h>
Definition at line 336 of file IParamFunction.h.
Definition at line 335 of file IParamFunction.h.
Definition at line 334 of file IParamFunction.h.
|
inlineoverride |
Virtual Destructor (no operations)
Definition at line 342 of file IParamFunction.h.
|
privatepure virtual |
Evaluate the gradient, to be implemented by the derived classes.
Implemented in ROOT::Math::WrappedTF1, and ROOT::Math::Polynomial.
|
inline |
Partial derivative with respect a parameter Compatibility interface with multi-dimensional functions.
Definition at line 403 of file IParamFunction.h.
|
inline |
Evaluate partial derivative using cached parameter values (multi-dim like interface)
Definition at line 412 of file IParamFunction.h.
|
inline |
Partial derivative with respect a parameter.
Definition at line 386 of file IParamFunction.h.
|
inline |
Evaluate partial derivative using cached parameter values.
Definition at line 394 of file IParamFunction.h.
|
inline |
Compatibility interface with multi-dimensional functions.
Definition at line 369 of file IParamFunction.h.
|
inline |
Evaluate all derivatives using cached parameter values (multi-dim like interface)
Definition at line 377 of file IParamFunction.h.
|
inlinevirtual |
Evaluate the derivatives 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 if needed
Reimplemented in ROOT::Math::WrappedTF1.
Definition at line 351 of file IParamFunction.h.
|
inline |
Evaluate all derivatives using cached parameter values.
Definition at line 361 of file IParamFunction.h.