13 #ifndef ROOT_Math_WrappedMultiTF1 14 #define ROOT_Math_WrappedMultiTF1 17 #ifndef ROOT_Math_IParamFunction 86 unsigned int NDim()
const {
139 double DoEvalPar (
const double * x,
const double * p )
const {
const TF1 * GetFunction() const
method to retrieve the internal function pointer
virtual void SetParameters(const Double_t *params)
unsigned int NDim() const
function dimension
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
WrappedMultiTF1 & operator=(const WrappedMultiTF1 &rhs)
Assignment operator.
Class to Wrap a ROOT Function class (like TF1) in a IParamMultiFunction interface of multi-dimensions...
WrappedMultiTF1(TF1 &f, unsigned int dim=0)
constructor from a function pointer to a TF1 If dim = 0 dimension is taken from TF1::GetNdim().
void ParameterGradient(const double *x, const double *par, double *grad) const
evaluate the derivative of the function with respect to the parameters
TMethodCall * GetMethodCall() const
virtual ~WrappedMultiTF1()
Destructor (no operations).
ROOT::Math::IParamMultiFunction::BaseFunc BaseFunc
void SetAndCopyFunction(const TF1 *f=0)
method to set a new function pointer and copy it inside.
ROOT::Math::IParamMultiGradFunction BaseParamFunc
static double GetDerivPrecision()
get precision value used for calculating the derivative step-size
double DoEvalPar(const double *x, const double *p) const
evaluate function passing coordinates x and vector of parameters
unsigned int NPar() const
return number of parameters
std::string ParameterName(unsigned int i) const
return parameter name (from TF1)
virtual const char * GetParName(Int_t ipar) const
const double * Parameters() const
get the parameter values (return values from TF1)
void SetParameters(const double *p)
set parameter values (only the cached one in this class,leave unchanges those of TF1) ...
static void SetDerivPrecision(double eps)
precision value used for calculating the derivative step-size h = eps * |x|.
Interface (abstract class) for parametric gradient multi-dimensional functions providing in addition ...
double DoParameterDerivative(const double *x, const double *p, unsigned int ipar) const
evaluate the partial derivative with respect to the parameter
Namespace for new Math classes and functions.
virtual void InitArgs(const Double_t *x, const Double_t *params)
Initialize parameters addresses.
virtual Int_t GetNpar() const
IMultiGenFunction * Clone() const
Clone the wrapper but not the original function.
virtual Double_t * GetParameters() const
double DoEval(const double *x) const
evaluate function using the cached parameter values (of TF1) re-implement for better efficiency ...
Documentation for the abstract class IBaseFunctionMultiDim.
virtual Double_t EvalPar(const Double_t *x, const Double_t *params=0)
Evaluate function with given coordinates and parameters.