Dear all,
I need to fit sets of 3 data points in 3D. What would be the fastest way to perform? Because I have to repeat this operation thousands of times. And is there any function in ROOT providing the chi2 or something related to the fit?
Thanks for your help,
Diego
Hi,
If you need to do a linear fit , probably the fastest is to use the Linear Fitter class. An example is this one
https://root.cern.ch/doc/master/fitLinear2_8C.html
Since you have 3D points, another possibility is to fill a TGraph2D and use the TGraph2D::Fit
Otherwise you can extend this circle fit, https://root.cern.ch/doc/master/fitCircle_8C.html
to the linear one.
Lorenzo
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.