12 #ifndef ROOT_TVirtualFitter 13 #define ROOT_TVirtualFitter 27 #ifndef ROOT_TMethodCall 99 virtual void SetFCN(
void *fcn)
static Double_t GetErrorDef()
static: Return the Error Definition
static void SetErrorDef(Double_t errdef=1)
static: Set the Error Definition (default=1) For Minuit this is the value passed with the "SET ERR" c...
#define R__DEPRECATED(MAJOR, MINOR, REASON)
static Double_t GetPrecision()
static: Return the fit relative precision
TVirtualFitter()
Default constructor.
virtual void SetYlast(Int_t last)
virtual Double_t Chisquare(Int_t npar, Double_t *params) const =0
virtual void GetConfidenceIntervals(Int_t n, Int_t ndim, const Double_t *x, Double_t *ci, Double_t cl=0.95)
return confidence intervals in array x of dimension ndim implemented in TFitter and TLinearFitter ...
static Int_t GetMaxIterations()
static: Return the maximum number of iterations actually max number of function calls ...
virtual Int_t SetParameter(Int_t ipar, const char *parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)=0
virtual void SetFitMethod(const char *name)=0
virtual Double_t * GetCovarianceMatrix() const =0
virtual void SetUserFunc(TObject *userfunc)
virtual Int_t GetXfirst() const
virtual void SetXlast(Int_t last)
static void SetDefaultFitter(const char *name="")
static: set name of default fitter
virtual Int_t GetNumberFreeParameters() const =0
virtual Double_t GetParameter(Int_t ipar) const =0
virtual Double_t GetCovarianceMatrixElement(Int_t i, Int_t j) const =0
virtual Double_t * SetCache(Int_t npoints, Int_t psize)
Initialize the cache array npoints is the number of points to be stored (or already stored) in the ca...
TMethodCall * GetMethodCall() const
static const char * GetDefaultFitter()
static: return the name of the default fitter
virtual void PrintResults(Int_t level, Double_t amin) const =0
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
TVirtualFitter & operator=(const TVirtualFitter &tvf)
assignment operator
static void SetMaxIterations(Int_t niter=5000)
static: Set the maximum number of function calls for the minimization algorithm For example for MIGRA...
virtual void SetFCN(void *fcn) R__DEPRECATED(6
To set the address of the minimization objective function.
virtual void Clear(Option_t *option="")=0
Set name and title to empty strings ("").
Method or function calling interface.
virtual Double_t GetParError(Int_t ipar) const =0
virtual Int_t GetYlast() const
virtual void ReleaseParameter(Int_t ipar)=0
static void SetFitter(TVirtualFitter *fitter, Int_t maxpar=25)
Static function to set an alternative fitter.
virtual void SetZfirst(Int_t first)
virtual Foption_t GetFitOption() const
virtual void SetObjectFit(TObject *obj)
virtual ~TVirtualFitter()
Cleanup virtual fitter.
virtual Int_t GetZfirst() const
virtual Int_t GetYfirst() const
virtual void CINT remnant
virtual void FixParameter(Int_t ipar)=0
virtual void SetFitOption(Foption_t option)
static TVirtualFitter * GetFitter()
static: return the current Fitter
virtual Bool_t IsFixed(Int_t ipar) const =0
virtual Int_t ExecuteCommand(const char *command, Double_t *args, Int_t nargs)=0
virtual FCNFunc_t GetFCN()
void(* FCNFunc_t)(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
virtual Int_t GetErrors(Int_t ipar, Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &globcc) const =0
virtual Int_t GetStats(Double_t &amin, Double_t &edm, Double_t &errdef, Int_t &nvpar, Int_t &nparx) const =0
virtual Int_t GetZlast() const
virtual Int_t GetNumberTotalParameters() const =0
virtual void SetYfirst(Int_t first)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
static void SetPrecision(Double_t prec=1e-6)
static: Set the tolerance used in the minimization algorithm For example for MIGRAD this is tolerance...
Abstract Base Class for Fitting.
Mother of all ROOT objects.
typedef void((*Func_t)())
virtual Double_t GetSumLog(Int_t i)=0
static TVirtualFitter * Fitter(TObject *obj, Int_t maxpar=25)
Static function returning a pointer to the current fitter.
void(* fFCN)(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
virtual Int_t GetXlast() const
virtual TObject * GetUserFunc() const
virtual TObject * GetObjectFit() const
virtual void SetXfirst(Int_t first)
virtual const char * GetParName(Int_t ipar) const =0
virtual void SetZlast(Int_t last)
TMethodCall * fMethodCall