Package org.jlab.rec.cvt.fit
Class CircleFitter
java.lang.Object
org.jlab.rec.cvt.fit.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 SummaryConstructorsConstructorDescriptionCircleFitter(double xb, double yb) Constructor Sets the reference point to (0,0)
- 
Method SummaryModifier and TypeMethodDescriptionbooleanFits 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()double[][]invert3x3Matrix(double[][] m) static voiddouble[][]multiply3x3Matrices(double[][] firstMatrix, double[][] secondMatrix) propagatefit(double xp, double yp) voidsetrefcoords(double xr, double yr) double[][]transpose3x3Matrix(double[][] theMatrix) 
- 
Constructor Details- 
CircleFitterpublic CircleFitter(double xb, double yb) Constructor Sets the reference point to (0,0)- Parameters:
- xb-
- yb-
 
 
- 
- 
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.- Parameters:
- xm-
- ym-
- wm-
- NP-
- Returns:
 
- 
getFit
- 
propagatefit
- 
main
- 
transpose3x3Matrixpublic double[][] transpose3x3Matrix(double[][] theMatrix) 
- 
multiply3x3Matricespublic double[][] multiply3x3Matrices(double[][] firstMatrix, double[][] secondMatrix) 
- 
invert3x3Matrixpublic double[][] invert3x3Matrix(double[][] m) 
 
-