21 unsigned int NDim()
const {
return 1; }
40 double y = (x[0]-p[1])/p[2];
44 using ROOT::Math::IParamMultiGradFunction::operator();
50 double y = (x[0]-
m )/s;
60 double DoEvalPar(
const double *
x,
const double * p)
const {
64 double y = (x[0]-
m)/s;
void ParameterGradient(const double *x, const double *p, double *g) const
Evaluate the all the derivatives (gradient vector) of the function with respect to the parameters at ...
Interface (abstract class) for parametric gradient multi-dimensional functions providing in addition ...
unsigned int NDim() const
Retrieve the dimension of the function.
double DoDerivative(const double *x, unsigned int icoord) const
const double * Parameters() const
Access the parameter values.
Documentation for the abstract class IBaseFunctionMultiDim.
GaussFunction(double _amp=1, double _mean=0, double _sigma=1)
void SetParameters(const double *p)
Set the parameter values.
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...
double DoEvalPar(const double *x, const double *p) const
ROOT::Math::IMultiGenFunction * Clone() const
Clone a function.
typedef void((*Func_t)())
double operator()(const double *x, const double *p)
unsigned int NPar() const
Return the number of Parameters.