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,
If you need to do a linear fit , probably the fastest is to use the Linear Fitter class.
An example is this one
Since you have 3D points, another possibility is to fill a TGraph2D and use the TGraph2D::Fit
Otherwise you can extend this circle fit,
to the linear one.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.