13 #ifndef ROOT_Math_MultiDimParamFunctionAdapter 14 #define ROOT_Math_MultiDimParamFunctionAdapter 16 #ifndef ROOT_Math_IFunction 19 #ifndef ROOT_Math_IParamFunction 23 #ifndef ROOT_Math_WrappedFunction 128 unsigned int NDim()
const {
return 1; }
242 unsigned int NDim()
const {
return 1; }
249 fFunc->ParameterGradient(*x, p, grad);
266 return fFunc->ParameterDerivative(*x, p, ipar);
virtual const double * Parameters() const =0
Access the parameter values.
unsigned int NDim() const
Retrieve the dimension of the function.
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
IParamGradFunction * fFunc
MultiDimParamGradFunctionAdapter(IParamGradFunction &f)
Constructor from a param one dim function interface from a non const reference Do not own the functio...
double DoEvalPar(const double *x, const double *p) const
needed by the interface
virtual ~MultiDimParamFunctionAdapter()
Destructor (no operations)
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 ...
MultiDimParamFunctionAdapter & operator=(const MultiDimParamFunctionAdapter &rhs)
Assignment operator.
double DoEvalPar(const double *x, const double *p) const
functions needed by interface
MultiDimParamFunctionAdapter class to wrap a one-dimensional parametric function in a multi dimension...
const double * Parameters() const
Access the parameter values.
virtual ~MultiDimParamGradFunctionAdapter()
Destructor (no operations)
MultiDimParamGradFunctionAdapter & operator=(const MultiDimParamGradFunctionAdapter &rhs)
Assignment operator.
MultiDimParamGradFunctionAdapter(const MultiDimParamGradFunctionAdapter &rhs)
Copy constructor.
double DoParameterDerivative(const double *x, const double *p, unsigned int ipar) const
Evaluate the partial derivative w.r.t a parameter ipar , to be implemented by the derived classes...
unsigned int NPar() const
Return the number of Parameters.
virtual unsigned int NPar() const =0
Return the number of Parameters.
void SetParameters(const double *p)
Set the parameter values.
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
IParamMultiGradFunction::BaseFunc BaseFunc
unsigned int NDim() const
Retrieve the dimension of the function.
unsigned int NPar() const
Return the number of Parameters.
virtual BaseFunc * Clone() const
clone
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 ...
Interface (abstract class) for parametric gradient multi-dimensional functions providing in addition ...
const double * Parameters() const
Access the parameter values.
void SetParameters(const double *p)
Set the parameter values.
IParamMultiFunction::BaseFunc BaseFunc
Namespace for new Math classes and functions.
MultiDimParamFunctionAdapter(IParamFunction &f)
Constructor from a parametric one dim function interface from a non-const reference Do not own the fu...
MultiDimParamGradFunctionAdapter(const IParamGradFunction &f)
Constructor from a param one dim function interface from a const reference Copy and manage the own fu...
MultiDimParamGradFunctionAdapter class to wrap a one-dimensional parametric gradient function in a mu...
virtual IBaseFunctionOneDim * Clone() const =0
Clone a function.
MultiDimParamFunctionAdapter(const MultiDimParamFunctionAdapter &rhs)
Copy constructor.
virtual BaseFunc * Clone() const
clone
MultiDimParamFunctionAdapter(const IParamFunction &f)
Constructor from a parametric one dim function interface from a const reference Own the function in t...
Documentation for the abstract class IBaseFunctionMultiDim.