library: libCore #include "TVirtualFitter.h" |
TVirtualFitter
class description - header file - source file - inheritance tree (.pdf)
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
protected:
TVirtualFitter& operator=(const TVirtualFitter&)
public:
virtual ~TVirtualFitter()
virtual Double_t Chisquare(Int_t npar, Double_t* params) const
static TClass* Class()
virtual void Clear(Option_t* option = "")
virtual Int_t ExecuteCommand(const char* command, Double_t* args, Int_t nargs)
static TVirtualFitter* Fitter(TObject* obj, Int_t maxpar = 25)
virtual void FixParameter(Int_t ipar)
virtual void GetConfidenceIntervals(Int_t n, Int_t ndim, const Double_t* x, Double_t* ci, Double_t cl = 0.95)
virtual void GetConfidenceIntervals(TObject* obj, Double_t cl = 0.95)
virtual Double_t* GetCovarianceMatrix() const
virtual Double_t GetCovarianceMatrixElement(Int_t i, Int_t j) const
static const char* GetDefaultFitter()
static Double_t GetErrorDef()
virtual Int_t GetErrors(Int_t ipar, Double_t& eplus, Double_t& eminus, Double_t& eparab, Double_t& globcc) const
virtual Foption_t GetFitOption() const
static TVirtualFitter* GetFitter()
static Int_t GetMaxIterations()
TMethodCall* GetMethodCall() const
virtual Int_t GetNumberFreeParameters() const
virtual Int_t GetNumberTotalParameters() const
virtual TObject* GetObjectFit() const
virtual Double_t GetParameter(Int_t ipar) const
virtual Int_t GetParameter(Int_t ipar, char* name, Double_t& value, Double_t& verr, Double_t& vlow, Double_t& vhigh) const
virtual Double_t GetParError(Int_t ipar) const
virtual const char* GetParName(Int_t ipar) const
static Double_t GetPrecision()
virtual Int_t GetStats(Double_t& amin, Double_t& edm, Double_t& errdef, Int_t& nvpar, Int_t& nparx) const
virtual Double_t GetSumLog(Int_t i)
virtual TObject* GetUserFunc() const
virtual Int_t GetXfirst() const
virtual Int_t GetXlast() const
virtual Int_t GetYfirst() const
virtual Int_t GetYlast() const
virtual Int_t GetZfirst() const
virtual Int_t GetZlast() const
virtual TClass* IsA() const
virtual Bool_t IsFixed(Int_t ipar) const
virtual void PrintResults(Int_t level, Double_t amin) const
virtual void ReleaseParameter(Int_t ipar)
virtual Double_t* SetCache(Int_t npoints, Int_t psize)
static void SetDefaultFitter(const char* name = "")
static void SetErrorDef(Double_t errdef = 1)
virtual void SetFCN(void* fcn)
virtual void SetFCN(void (*)(Int_t&, Double_t*, Double_t&f, Double_t*, Int_t) fcn)
virtual void SetFitMethod(const char* name)
virtual void SetFitOption(Foption_t option)
static void SetFitter(TVirtualFitter* fitter, Int_t maxpar = 25)
static void SetMaxIterations(Int_t niter = 5000)
virtual void SetObjectFit(TObject* obj)
virtual Int_t SetParameter(Int_t ipar, const char* parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)
static void SetPrecision(Double_t prec = 1e-6)
virtual void SetUserFunc(TObject* userfunc)
virtual void SetXfirst(Int_t first)
virtual void SetXlast(Int_t last)
virtual void SetYfirst(Int_t first)
virtual void SetYlast(Int_t last)
virtual void SetZfirst(Int_t first)
virtual void SetZlast(Int_t last)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Foption_t fOption struct with the fit options
Int_t fXfirst first bin on X axis
Int_t fXlast last bin on X axis
Int_t fYfirst first bin on Y axis
Int_t fYlast last bin on Y axis
Int_t fZfirst first bin on Z axis
Int_t fZlast last bin on Z axis
Int_t fNpoints Number of points to fit
Int_t fPointSize Number of words per point in the cache
Int_t fCacheSize Size of the fCache array
Double_t* fCache [fCacheSize] array of points data (fNpoints*fPointSize < fCacheSize words)
TObject* fObjectFit pointer to object being fitted
TObject* fUserFunc pointer to user theoretical function (a TF1*)
TMethodCall* fMethodCall Pointer to MethodCall in case of interpreted function
void fFCN
static TVirtualFitter* fgFitter Current fitter (default TFitter)
static Int_t fgMaxpar Maximum number of fit parameters for current fitter
static Int_t fgMaxiter Maximum number of iterations
static Double_t fgErrorDef Error definition (default=1)
static Double_t fgPrecision maximum precision
static TString fgDefault name of the default fitter ("Minuit","Fumili",etc)
______________________________________________________________________________
TVirtualFitter * Fitter(TObject *obj, Int_t maxpar)
Static function returning a pointer to the current fitter.
If the fitter does not exist, the default TFitter is created.
Don't delete the returned fitter object, it will be re-used.
void SetFCN(void (*fcn)(Int_t &, Double_t *, Double_t &f, Double_t *, Int_t))
To set the address of the minimization objective function
called by the native compiler (see function below when called by CINT)
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 cache
psize is the number of elements per point
if (npoints*psize > fCacheSize) the existing cache is deleted
and a new array is created.
The function returns a pointer to the cache
void SetFCN(void *fcn)
To set the address of the minimization objective function
this function is called by CINT instead of the function above
Author: Rene Brun 31/08/99
Last update: root/base:$Name: $:$Id: TVirtualFitter.cxx,v 1.17 2006/07/09 05:27:53 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
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.