ROOT logo
ROOT » MATH » MINUIT2 » TFcnAdapter

class TFcnAdapter: public ROOT::Minuit2::FCNGradientBase


 Adapt the interface used in TMinuit (and the TVirtualFitter) for
 passing the objective function in a Minuit2 interface
 (ROOT::Minuit2::FCNGradientBase or ROOT::Minuit2::FCNBase)

Function Members (Methods)

public:
TFcnAdapter(void (*)(int&, double*, double&, double*, int) fcn)
TFcnAdapter(const TFcnAdapter&)
virtual~TFcnAdapter()
const ROOT::Minuit2::FCNBase&Base() const
virtual boolROOT::Minuit2::FCNGradientBase::CheckGradient() const
static TClass*Class()
virtual doubleROOT::Minuit2::FCNBase::ErrorDef() const
virtual vector<double>Gradient(const vector<double>&) const
virtual TClass*IsA() const
virtual doubleoperator()(const vector<double>&) const
doubleoperator()(int npar, double* params, int iflag = 4) const
TFcnAdapter&operator=(const TFcnAdapter&)
virtual voidSetErrorDef(double up)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual doubleUp() const

Data Members

private:
void (*)(int&, double*, double&, double*, int)fFCN
vector<double>fGradCache
doublefUp

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TFcnAdapter(void (*fcn)(int&, double*, double&, double*, int))
{}
virtual ~TFcnAdapter()
{}
double operator()(const vector<double>& ) const
double Up() const
{return fUp; }
void SetErrorDef(double up)
{ fUp = up; }
std::vector<double> Gradient(const vector<double>& ) const
double operator()(int npar, double* params, int iflag = 4) const
 forward interface