21 Double_t value=( (par[0]*par[0])/(x*x)-1)/ ( par[1]+par[2]*y-par[3]*y*y);
34 for (i=0;i<
nbins; i++) {
77 gMinuit->
mnexcm(
"SET ERR", arglist ,1,ierflg);
80 static Double_t vstart[4] = {3, 1 , 0.1 , 0.01};
81 static Double_t step[4] = {0.1 , 0.1 , 0.01 , 0.001};
82 gMinuit->
mnparm(0,
"a1", vstart[0], step[0], 0,0,ierflg);
83 gMinuit->
mnparm(1,
"a2", vstart[1], step[1], 0,0,ierflg);
84 gMinuit->
mnparm(2,
"a3", vstart[2], step[2], 0,0,ierflg);
85 gMinuit->
mnparm(3,
"a4", vstart[3], step[3], 0,0,ierflg);
90 gMinuit->
mnexcm(
"MIGRAD", arglist ,2,ierflg);
94 Int_t nvpar,nparx,icstat;
95 gMinuit->
mnstat(amin,edm,errdef,nvpar,nparx,icstat);
virtual void mnstat(Double_t &fmin, Double_t &fedm, Double_t &errdef, Int_t &npari, Int_t &nparx, Int_t &istat)
*-*-*-*-*Returns concerning the current status of the minimization*-*-*-*-* *-* =====================...
void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
Implementation in C++ of the Minuit package written by F.
virtual void SetFCN(void *fcn)
*-*-*-*-*-*-*To set the address of the minimization function*-*-*-*-*-*-*-* *-* =====================...
R__EXTERN TMinuit * gMinuit
virtual void mnparm(Int_t k, TString cnamj, Double_t uk, Double_t wk, Double_t a, Double_t b, Int_t &ierflg)
*-*-*-*-*-*-*-*-*Implements one parameter definition*-*-*-*-*-*-*-*-*-*-*-* *-* =====================...
virtual void mnexcm(const char *comand, Double_t *plist, Int_t llist, Int_t &ierflg)
*-*-*-*-*-*Interprets a command and takes appropriate action*-*-*-*-*-*-*-* *-* =====================...
Double_t func(float x, float y, Double_t *par)