10 #ifndef ROOT_Fit_FcnAdapter_H_
11 #define ROOT_Fit_FcnAdapter_H_
13 #ifndef ROOT_Math_IFunction
33 FcnAdapter(
void (*fcn)(
int&,
double*,
double&,
double*,
int ),
int dim = 0) :
40 virtual unsigned int NDim()
const {
return fDim; }
50 virtual double DoEval(
const double *
x)
const {
54 fFCN(dim, 0, fval, const_cast<double *>(x), 4);
61 void (*
fFCN)(
int&,
double*,
double&,
double*, int);
70 #endif //ROOT_Fit_FcnAdapter
Namespace for new ROOT classes and functions.
FcnAdapter(void(*fcn)(int &, double *, double &, double *, int), int dim=0)
void(* fFCN)(int &, double *, double &, double *, int)
ROOT::Math::IMultiGenFunction * Clone() const
Clone a function.
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
typedef void((*Func_t)())
virtual unsigned int NDim() const
Retrieve the dimension of the function.
void SetDimension(int dim)
Documentation for the abstract class IBaseFunctionMultiDim.
virtual double DoEval(const double *x) const
Implementation of the evaluation function.