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);
68 #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)
virtual unsigned int NDim() const
Retrieve the dimension of the function.
ROOT::Math::IMultiGenFunction * Clone() const
Clone a function.
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)
typedef void((*Func_t)())
void SetDimension(int dim)
virtual double DoEval(const double *x) const