comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Fit a circle ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Fit a circle ? [message #32799] Fri, 08 November 2002 03:16
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
<zeschke@bessy.de> writes:

> is there a simple way to fit a circle (a radius) on a set of x,y-points,
> which are only come from a small part of the circle ?
> I want to use the mpfitellipse.pro-Routine (Craig Markwardt).
>
> I tried this without success :
> ;;;;;;;
> ; Construct a set of points (should be a part of a circle)
> x= dindgen(100)-50.
> y= x^2 *1e-8 + 1e-6*randomn(seed, 100)

I'm confused. Even with the noise removed, this is not the equation
for a circle, but a parabola instead (or perhaps a tiny edge of an
ellipse in some limiting case). If you are trying to fit parabola,
then you should use MPFITFUN or MPFITEXPR.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Previous Topic: Fit a circle ?
Next Topic: About keywords and positional parameters

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 00:50:47 PDT 2025

Total time taken to generate the page: 1.03772 seconds