15 #include "TVirtualFitter.h" 85 virtual Double_t
Chisquare(Int_t npar, Double_t *params)
const;
86 virtual void Clear(Option_t *opt=
"");
89 Int_t
Eval(Int_t& npar, Double_t *grad, Double_t &fval, Double_t *par, Int_t flag);
90 Double_t
EvalTFN(Double_t *,Double_t*);
91 virtual Int_t
ExecuteCommand(
const char *command, Double_t *args, Int_t nargs);
93 virtual void FitChisquare(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag);
94 virtual void FitChisquareI(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag);
95 virtual void FitLikelihood(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag);
96 virtual void FitLikelihoodI(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag);
100 virtual Int_t
GetErrors(Int_t ipar,Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &globcc)
const;
106 virtual Int_t
GetParameter(Int_t ipar,
char *name,Double_t &value,Double_t &verr,Double_t &vlow, Double_t &vhigh)
const;
107 virtual const char *
GetParName(Int_t ipar)
const;
108 virtual Int_t
GetStats(Double_t &amin, Double_t &edm, Double_t &errdef, Int_t &nvpar, Int_t &nparx)
const;
112 virtual Bool_t
IsFixed(Int_t ipar)
const;
117 void SetData(Double_t *,Int_t,Int_t);
119 virtual Int_t
SetParameter(Int_t ipar,
const char *parname,Double_t value,Double_t verr,Double_t vlow, Double_t vhigh);
virtual Int_t GetStats(Double_t &amin, Double_t &edm, Double_t &errdef, Int_t &nvpar, Int_t &nparx) const
return global fit parameters amin : chisquare edm : estimated distance to minimum errdef nvpar : numb...
virtual Double_t Chisquare(Int_t npar, Double_t *params) const
return a chisquare equivalent
virtual Double_t * GetCovarianceMatrix() const
return a pointer to the covariance matrix
virtual Double_t GetCovarianceMatrixElement(Int_t i, Int_t j) const
return element i,j from the covariance matrix
Int_t Eval(Int_t &npar, Double_t *grad, Double_t &fval, Double_t *par, Int_t flag)
Evaluate the minimisation function Input parameters: npar: number of currently variable parameters pa...
virtual void FixParameter(Int_t ipar)
Fixes parameter number ipar.
virtual Double_t GetParameter(Int_t ipar) const
return current value of parameter ipar
virtual Int_t GetNumberTotalParameters() const
return the total number of parameters (free + fixed)
virtual void PrintResults(Int_t k, Double_t p) const
Prints fit results.
Double_t * GetPL0() const
Bool_t fNumericDerivatives
virtual Int_t SetParameter(Int_t ipar, const char *parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)
Sets for prameter number ipar initial parameter value, name parname, initial error verr and limits vl...
void InvertZ(Int_t)
Inverts packed diagonal matrix Z by square-root method.
virtual const char * GetParName(Int_t ipar) const
return name of parameter ipar
void BuildArrays()
Allocates memory for internal arrays.
virtual Int_t GetErrors(Int_t ipar, Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &globcc) const
Return errors after MINOs not implemented.
Double_t EvalTFN(Double_t *, Double_t *)
Evaluate theoretical function df: array of partial derivatives X: vector of theoretical function argu...
virtual Double_t GetParError(Int_t ipar) const
return error of parameter ipar
Int_t ExecuteSetCommand(Int_t)
Called from TFumili::ExecuteCommand in case of "SET xxx" and "SHOW xxx".
void DeleteArrays()
Deallocates memory.
virtual Bool_t IsFixed(Int_t ipar) const
Return kTRUE if parameter ipar is fixed, kFALSE othersise)
R__EXTERN TFumili * gFumili
virtual Int_t GetNumberFreeParameters() const
return the number of free parameters
virtual Int_t ExecuteCommand(const char *command, Double_t *args, Int_t nargs)
Execute MINUIT commands.
virtual void SetFitMethod(const char *name)
ret fit method (chisquare or loglikelihood)
virtual void FitChisquareI(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
Minimization function for H1s using a Chisquare method.
virtual void FitLikelihoodI(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
Minimization function for H1s using a Likelihood method.
virtual ~TFumili()
TFumili destructor.
void Derivatives(Double_t *, Double_t *)
Calculates partial derivatives of theoretical function.
virtual void FitChisquare(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
Minimization function for H1s using a Chisquare method.
virtual void ReleaseParameter(Int_t ipar)
Releases parameter number ipar.
virtual Double_t GetSumLog(Int_t)
return Sum(log(i) i=0,n used by log likelihood fits
void SetData(Double_t *, Int_t, Int_t)
Sets pointer to data array provided by user.
virtual void Clear(Option_t *opt="")
Resets all parameter names, values and errors to zero.
void SetParNumber(Int_t ParNum)
virtual void FitLikelihood(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
Minimization function for H1s using a Likelihood method.
Int_t SGZ()
Evaluates objective function ( chi-square ), gradients and Z-matrix using data provided by user via T...