Hello,
Is it possible to exclude a point from a fit? I’m just making a linear fit to ~10 data points, just with the simple pol1 function:
hist->Fit(“pol1”,"","",fit_min,fit_max);
In some of my histograms I have bad data points that I would like to exclude from the fit.
Thanks for any help, Cheers, Andrew
Only bins with a non-null error are taken into account in a fit. Call TH1::SetBinError(bin,0); for the bins you want to exclude. You can also excluse a range via TF1::RejectPoint root.cern.ch/root/htmldoc/TF1.ht … ejectPoint
see an example in tutorial fitExclude.C
Rene