🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.stat.math
Article #22

Re: Help! Need Best-Fit Circle Equation.

#22
From: Peter Spellucci
Date: Thu, 02 Apr 1998 00:00
17 lines
1406 bytes
In article <3523A24A.F9C10F3B@conversionsinc.com>, Kurt Feldbush <kurt@conversionsinc.com> writes:
|>     I am looking for an equation or algorithm to find the best fit
|> circle or ellipse to a set of data points.  I have searched everywhere I
|> could think of with no luck.  Can anyone help?
|> 
take odrpack from netlib. there is an ellipse-fit in the user-guide,
and, of course, the circle is the simpler case. you could do the
circle fit in a special manner (not using general orthogonal regression)
simply by minimizing 

   sum_i { ( (x_i-xm)**2+(y_i-ym)**2-r**2 )**2 }

with respect to xm,ym and r (midpoint and radius), with x_i,y_i the
given points
hope this helps
peter
Technical Details
Message-ID: <6g0ib2$16a$1@sun27.hrz.tu-darmstadt.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3523A24A.F9C10F3B@conversionsinc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d632,63ed556734094c9b
X-Google-Attributes: gid10d632,public
X-Google-Thread: 107079,63ed556734094c9b
X-Google-Attributes: gid107079,public
X-Google-Thread: 10d67e,63ed556734094c9b
X-Google-Attributes: gid10d67e,public
From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Subject: Re: Help! Need Best-Fit Circle Equation.
Date: 1998/04/02
Message-ID: <6g0ib2$16a$1@sun27.hrz.tu-darmstadt.de>
X-Deja-AN: 340247556
References: <3523A24A.F9C10F3B@conversionsinc.com>
To: Kurt Feldbush <kurt@conversionsinc.com>
Organization: TH Darmstadt, Fachbereich Mathematik
Newsgroups: sci.stat.math,sci.math.num-analysis,aus.mathematics