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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanFits the set of data points given by arrays xm[], ym[], with corresponding weights wm[].getFit()voidsetrefcoords(double xr, double yr) 
- 
Constructor Details- 
CircleFitterpublic CircleFitter()Constructor Sets the reference point to (0,0)
 
- 
- 
Method Details- 
setrefcoordspublic void setrefcoords(double xr, double yr) 
- 
fitStatusFits 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
 
-