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 unsigned int NDim()
const override {
return fDim; }
48 double DoEval(
const double *
x)
const override {
52 fFCN(dim,
nullptr, fval,
const_cast<double *
>(
x), 4);
59 void (*
fFCN)(
int&,
double*,
double&,
double*,
int);
ROOT::Math::IMultiGenFunction * Clone() const override
Clone a function.
unsigned int NDim() const override
Retrieve the dimension of the function.
void SetDimension(int dim)
FcnAdapter(void(*fcn)(int &, double *, double &, double *, int), int dim=0)
double DoEval(const double *x) const override
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)
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.