27 static double gEPs = 0.001;
35 TF1 *fnew = (
TF1 *) funcToCopy->IsA()->New();
36 funcToCopy->
Copy(*fnew);
62 while (
fLinear && ip < fFunc->GetNpar()) {
86 if (
this == &rhs)
return *
this;
104 unsigned int np =
NPar();
105 for (
unsigned int i = 0; i < np; ++i)
131 return std::pow(x, static_cast<int>(ipar));
138 return (const_cast<TFormula *>(df))->Eval(x) ;
virtual void SetParameters(const Double_t *params)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
virtual void Copy(TObject &f1) const
Copy this F1 to a new F1.
Namespace for new ROOT classes and functions.
double DoParameterDerivative(double x, const double *p, unsigned int ipar) const
evaluate the derivative of the function with respect to the parameters
static double GetDerivPrecision()
get precision value used for calculating the derivative step-size
TMethodCall * GetMethodCall() const
Class to Wrap a ROOT Function class (like TF1) in a IParamFunction interface of one dimensions to be ...
static void SetDerivPrecision(double eps)
precision value used for calculating the derivative step-size h = eps * |x|.
double DoDerivative(double x) const
return the function derivatives w.r.t. x
virtual Double_t Derivative(Double_t x, Double_t *params=0, Double_t epsilon=0.001) const
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
Specialized Gradient interface(abstract class) for one dimensional functions It provides a method to ...
double pow(double, double)
virtual Double_t GradientPar(Int_t ipar, const Double_t *x, Double_t eps=0.01)
Compute the gradient (derivative) wrt a parameter ipar.
void ParameterGradient(double x, const double *par, double *grad) const
evaluate the derivative of the function with respect to the parameters
TF1 * CopyTF1Ptr(const TF1 *funcToCopy)
virtual const TObject * GetLinearPart(Int_t i) const
virtual Bool_t IsLinear() const
Interface (abstract class) for parametric one-dimensional gradient functions providing in addition to...
unsigned int NPar() const
return number of parameters
double DerivPrecision(double eps)
WrappedTF1(TF1 &f)
constructor from a TF1 function pointer.
WrappedTF1 & operator=(const WrappedTF1 &rhs)
Assignment operator.
Namespace for new Math classes and functions.
virtual void InitArgs(const Double_t *x, const Double_t *params)
Initialize parameters addresses.
virtual Int_t GetNumber() const