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,

To read points from a file, you can look here

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


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