Package org.jlab.rec.ahdc.Distance
Class CircleFitter
java.lang.Object
org.jlab.rec.ahdc.Distance.CircleFitter
Circle fit using the Karimaki algorithm. The algorithm returns Gaussian
parameters' rho (circle curvature), d (doca to orig.) and phi (at doca).
Allows for non-iterative solution. Returns covariance matrix of fitted
parameter.
Algorithm Reference: Nuclear Instruments and Methods in Physics Research A305 (1991) 187-191 Effective circle fitting for particle trajectories by V. Karimaki
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Fits the set of data points given by arrays xm[], ym[], with corresponding weights wm[].getFit()
void
setrefcoords
(double xr, double yr)
-
Constructor Details
-
CircleFitter
public CircleFitter()Constructor Sets the reference point to (0,0)
-
-
Method Details
-
setrefcoords
public void setrefcoords(double xr, double yr) -
fitStatus
Fits the set of data points given by arrays xm[], ym[], with corresponding weights wm[]. The number of points that are fitted is given by NP. The fit returns a boolean flag of true if the fit was successful. -
getFit
-