Least squares fit

I am really stuck, I have a file called data.C with data points and I need to make a least-squares fit from pol0 to pol6 of it does anyone know how to do this?

Hi Zach,
please check out the fit tutorials.
Hope this helps,
Enrico

Hi,
To read points from a file, you can look here
https://root.cern.ch/root/htmldoc/guides/primer/ROOTPrimer.html#read-graph-points-from-file

and then you call the TGraph::Fit function, looking at some of the fit tutorials

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.