13#ifndef ROOT_Math_MultiDimParamFunctionAdapter
14#define ROOT_Math_MultiDimParamFunctionAdapter
126 unsigned int NPar()
const override
131 unsigned int NDim()
const override
257 unsigned int NPar()
const override
262 unsigned int NDim()
const override
winID h TVirtualViewer3D TVirtualGLPainter p
virtual void SetParameters(const double *p)=0
Set the parameter values.
virtual const double * Parameters() const =0
Access the parameter values.
virtual unsigned int NPar() const =0
Return the number of Parameters.
IParamFunction interface (abstract class) describing multi-dimensional parametric functions It is a d...
Specialized IParamFunction interface (abstract class) for one-dimensional parametric functions It is ...
Interface (abstract class) for parametric gradient multi-dimensional functions providing in addition ...
typename IParametricFunctionMultiDimTempl< T >::BaseFunc BaseFunc
Interface (abstract class) for parametric one-dimensional gradient functions providing in addition to...
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.
double ParameterDerivative(double x, const double *p, unsigned int ipar=0) const
Partial derivative with respect a parameter.
MultiDimParamFunctionAdapter class to wrap a one-dimensional parametric function in a multi dimension...
IParamMultiFunction::BaseFunc BaseFunc
MultiDimParamFunctionAdapter & operator=(const MultiDimParamFunctionAdapter &rhs)
Assignment operator.
MultiDimParamFunctionAdapter(const MultiDimParamFunctionAdapter &rhs)
Copy constructor.
MultiDimParamFunctionAdapter(const IParamFunction &f)
Constructor from a parametric one dim function interface from a const reference Own the function in t...
double DoEvalPar(const double *x, const double *p) const override
needed by the interface
const double * Parameters() const override
Access the parameter values.
MultiDimParamFunctionAdapter(IParamFunction &f)
Constructor from a parametric one dim function interface from a non-const reference Do not own the fu...
BaseFunc * Clone() const override
clone
void SetParameters(const double *p) override
Set the parameter values.
unsigned int NPar() const override
Return the number of Parameters.
unsigned int NDim() const override
Retrieve the dimension of the function.
~MultiDimParamFunctionAdapter() override
Destructor (no operations)
MultiDimParamGradFunctionAdapter class to wrap a one-dimensional parametric gradient function in a mu...
MultiDimParamGradFunctionAdapter(IParamGradFunction &f)
Constructor from a param one dim function interface from a non const reference Do not own the functio...
unsigned int NDim() const override
Retrieve the dimension of the function.
BaseFunc * Clone() const override
clone
double DoParameterDerivative(const double *x, const double *p, unsigned int ipar) const override
double DoEvalPar(const double *x, const double *p) const override
functions needed by interface
IParamMultiGradFunction::BaseFunc BaseFunc
const double * Parameters() const override
Access the parameter values.
IParamGradFunction * fFunc
MultiDimParamGradFunctionAdapter(const IParamGradFunction &f)
Constructor from a param one dim function interface from a const reference Copy and manage the own fu...
void ParameterGradient(const double *x, const double *p, double *grad) const override
unsigned int NPar() const override
Return the number of Parameters.
~MultiDimParamGradFunctionAdapter() override
Destructor (no operations)
void SetParameters(const double *p) override
Set the parameter values.
MultiDimParamGradFunctionAdapter(const MultiDimParamGradFunctionAdapter &rhs)
Copy constructor.
MultiDimParamGradFunctionAdapter & operator=(const MultiDimParamGradFunctionAdapter &rhs)
Assignment operator.
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.