Difference between revisions of "Least-squares circle fitting"

From JSXGraph Wiki
Jump to navigationJump to search
Line 4: Line 4:
 
var i, p = [], angle, co, si, delta = 0.2;
 
var i, p = [], angle, co, si, delta = 0.2;
  
 +
brd.suspendUpdate();
 
for (i=0;i<50;i++) {
 
for (i=0;i<50;i++) {
 
   angle = Math.random()*2*Math.PI;
 
   angle = Math.random()*2*Math.PI;
Line 11: Line 12:
 
   p.push(brd.create('point',[co, si], {withLabel:false}));
 
   p.push(brd.create('point',[co, si], {withLabel:false}));
 
}
 
}
 +
brd.unsuspendUpdate();
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 17:32, 5 November 2010

Catgegory:Statistics