Least-squares circle fitting: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
This is an implementation of the linear least-squares algorithm by Coope (1993) for circle fitting. | |||
<jsxgraph width="600" height="600"> | <jsxgraph width="600" height="600"> | ||
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true}); | var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true}); | ||
var i, p = [], angle, co, si, delta = 0.8; | |||
brd.suspendUpdate(); | brd.suspendUpdate(); | ||
for (i=0;i< | for (i=0;i<100;i++) { | ||
angle = Math.random()*2*Math.PI; | angle = Math.random()*2*Math.PI; | ||
Revision as of 15:47, 5 November 2010
This is an implementation of the linear least-squares algorithm by Coope (1993) for circle fitting.
References
- Coope, I.D., Circle fitting by linear and nonlinear least squares, Journal of Optimization Theory and Applications Volume 76, Issue 2, New York: Plenum Press, February 1993