10#ifndef ROOT_Fit_FcnAdapter_H_
11#define ROOT_Fit_FcnAdapter_H_
31 FcnAdapter(
void (*fcn)(
int&,
double*,
double&,
double*,
int ),
int dim = 0) :
38 virtual unsigned int NDim()
const {
return fDim; }
48 virtual double DoEval(
const double *
x)
const {
52 fFCN(dim, 0, fval,
const_cast<double *
>(
x), 4);
59 void (*
fFCN)(
int&,
double*,
double&,
double*, int);
typedef void((*Func_t)())
virtual unsigned int NDim() const
Retrieve the dimension of the function.
virtual double DoEval(const double *x) const
ROOT::Math::IMultiGenFunction * Clone() const
Clone a function.
void SetDimension(int dim)
FcnAdapter(void(*fcn)(int &, double *, double &, double *, int), int dim=0)
void(* fFCN)(int &, double *, double &, double *, int)
Documentation for the abstract class IBaseFunctionMultiDim.
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)