68 _func(
"function",
"function",this,func),
73 if (_order<0 || _order>3 ) {
74 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",name)) ;
85 _func(
"function",
"function",this,func),
90 if (_order<0 || _order>3) {
91 throw std::string(
Form(
"RooDerivative::ctor(%s) ERROR, derivation order must be 1,2 or 3",name)) ;
102 _order(other._order),
104 _nset(
"nset",this,other._nset),
105 _func(
"function",this,other._func),
106 _x(
"x",this,other._x),
double Derivative3(double x)
Returns the third derivative of the function at point x, computed by Richardson's extrapolation metho...
Double_t evaluate() const
Derivator.
RooDerivative()
Default constructor.
Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Zap functor and derivator ;.
double Derivative2(double x)
Returns the second derivative of the function at point x, computed by Richardson's extrapolation meth...
const RooAbsReal & arg() const
Template class to wrap any C++ callable object which takes one argument i.e.
double Derivative1(double x)
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
char * Form(const char *fmt,...)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual ~RooDerivative()
Destructor.
double func(double *x, double *p)
ROOT::Math::RichardsonDerivator * _rd
Functor binding of RooAbsReal.
Double_t min(const char *rname=0) const
RooFunctor * functor(const RooArgList &obs, const RooArgList &pars=RooArgList(), const RooArgSet &nset=RooArgSet()) const
Return a RooFunctor object bound to this RooAbsReal with given definition of observables and paramete...
Double_t max(const char *rname=0) const
User class for calculating the derivatives of a function.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...