Re: [ROOT] using TMinuit

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 11 2002 - 15:20:16 MEST


Hi Cynthia,

see example in TH1::Fit that calls TFitter::GetStats with:
Int_t TFitter::GetStats(Double_t &amin, Double_t &edm, Double_t &errdef,
Int_t &nvpar, Int_t &nparx)
{
   // return global fit parameters
   //   amin     : chisquare
   //   edm      : estimated distance to minimum
   //   errdef
   //   nvpar    : number of variable parameters
   //   nparx    : total number of parameters

   Int_t ierr = 0;
   gMinuit->mnstat(amin,edm,errdef,nvpar,nparx,ierr);

Rene Brun

On Wed, 11 Sep 2002, Hadjidakis Cynthia wrote:

> 
> Hi Rooters,
> 
> I'm using TMinuit for fitting histograms. Is there a function to obtain
> the chi2 value (as in TF1 class, there is a function GetChisquare()) at
> the end of the fit or do I need to calculate it by myself ?
> 
> 
> Thanks,
> Cynthia
> 
> -- 
> 
> ==========================
>    Cynthia Hadjidakis
>    Groupe PHASE - IPN
>          tel. : 
>    00 33 1 69 15 50 97
>     Bat. 100M M 054
> ==========================
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET