13 #ifndef ROOT_Math_IParamFunction
14 #define ROOT_Math_IParamFunction
16 #ifndef ROOT_Math_IFunction
20 #ifndef ROOT_Math_IParamFunctionfwd
24 #ifndef ROOT_Math_Util
83 virtual unsigned int NPar()
const = 0;
129 using BaseFunc::operator();
138 virtual double DoEvalPar(
const double *
x,
const double * p)
const = 0;
143 virtual double DoEval(
const double *
x)
const {
168 using BaseFunc::operator();
196 virtual double DoEvalPar(
double x,
const double * p)
const = 0;
242 using BaseParamFunc::operator();
249 unsigned int npar =
NPar();
250 for (
unsigned int ipar = 0; ipar < npar; ++ipar)
318 using BaseParamFunc::operator();
325 unsigned int npar =
NPar();
326 for (
unsigned int ipar = 0; ipar < npar; ++ipar)
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...
virtual const double * Parameters() const =0
Access the parameter values.
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
virtual ~IParametricGradFunctionMultiDim()
Virtual Destructor (no operations)
Namespace for new ROOT classes and functions.
double operator()(double x, const double *p) const
Evaluate function at a point x and for given parameters p.
virtual ~IParametricGradFunctionOneDim()
Virtual Destructor (no operations)
IBaseFunctionOneDim BaseFunc
IParametricFunctionOneDim BaseParamFunc
virtual void ParameterGradient(const double *x, const double *p, double *grad) const
Evaluate the all the derivatives (gradient vector) of the function with respect to the parameters at ...
IParametricFunctionMultiDim::BaseFunc BaseFunc
virtual double DoParameterDerivative(double x, const double *p, unsigned int ipar) const =0
Evaluate the gradient, to be implemented by the derived classes.
IGradientFunctionOneDim BaseGradFunc
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
void ParameterGradient(const double *x, const double *p, double *grad) const
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) ...
virtual ~IBaseParam()
Virtual Destructor (no operations)
double ParameterDerivative(double x, const double *p, unsigned int ipar=0) const
Partial derivative with respect a parameter.
IGradientFunctionMultiDim BaseGradFunc
virtual unsigned int NPar() const =0
Return the number of Parameters.
virtual double DoEval(double x) const
Implement the ROOT::Math::IBaseFunctionOneDim interface DoEval(x) using the cached parameter values...
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
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 nam...
IParametricFunctionOneDim::BaseFunc BaseFunc
Interface (abstract class) for parametric one-dimensional gradient functions providing in addition to...
virtual void SetParameters(const double *p)=0
Set the parameter values.
Specialized IParamFunction interface (abstract class) for one-dimensional parametric functions It is ...
double ParameterDerivative(double x, unsigned int ipar=0) const
Evaluate partial derivative using cached parameter values.
Interface (abstract class) for parametric gradient multi-dimensional functions providing in addition ...
void ParameterGradient(const double *x, double *grad) const
Evaluate all derivatives using cached parameter values.
IParametricFunctionMultiDim BaseParamFunc
virtual double DoEval(const double *x) const
Implement the ROOT::Math::IBaseFunctionMultiDim interface DoEval(x) using the cached parameter values...
Namespace for new Math classes and functions.
IBaseFunctionMultiDim BaseFunc
void ParameterGradient(double x, double *grad) const
Evaluate all derivatives using cached parameter values.
double ParameterDerivative(const double *x, const double *p, unsigned int ipar=0) const
Evaluate the partial derivative w.r.t a parameter ipar from values and parameters.
std::string ToString(const T &val)
Utility function for conversion to strings.
Documentation for the abstract class IBaseParam.
void ParameterGradient(const double *x, double *grad) const
Evaluate all derivatives using cached parameter values (multi-dim like interface) ...
double operator()(const double *x, const double *p) const
Evaluate function at a point x and for given parameters p.
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...
Documentation for the abstract class IBaseFunctionMultiDim.
virtual double DoEvalPar(double x, const double *p) const =0
Implementation of the evaluation function using the x value and the parameters.
virtual double DoParameterDerivative(const double *x, const double *p, unsigned int ipar) const =0
Evaluate the partial derivative w.r.t a parameter ipar , to be implemented by the derived classes...
virtual double DoEvalPar(const double *x, const double *p) const =0
Implementation of the evaluation function using the x values and the parameters.
double ParameterDerivative(const double *x, unsigned int ipar=0) const
Evaluate partial derivative using cached parameter values.