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, char* parent)
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()
{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

Author: L. Moneta 10/2005
Last update: root/minuit2:$Id: TFcnAdapter.h 20880 2007-11-19 11:23:41Z rdm $
Copyright (c) 2005 ROOT Foundation, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.