The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Best-Fit-Circle
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

iggboert

Germany
7 Posts

Posted - 10/28/2008 :  09:51:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Prog: Origin 8G SR1
OS: WinXP

Hello, I have some x/y-values and want to describe a geometric best-fit-circle in it. The curve looks nearly like a quarter circle.

I found lots of possibilities to make a linear fit (or NLFit). But i could not find any option to describe a best-fit-circle.

Is it anyhow possible to it? Or is it not possible with Origin?

Is it possible by writing a new function? If yes, please give me a hint.

Regards
iggboert from Erlangen/Germany

liuxiaopi

China
Posts

Posted - 10/31/2008 :  04:30:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If it is just one quarter of a circle: (x-xc)^2+(y-yc)^2=r^2, please try defining the following fitting function: y-yc= +/-sqrt(r^2-(x-xc)^2), where yc, xc, r are parameters. The sign +/- can be chosed according to your data, i.e: + for upper circle, - for lower circle. xc,yc can be set to zero or none if reasonable.

In case it is more like an ellipse: (x-xc)^2/a^2+(y-yc)^2/b^2=1, please try defining the following fitting function:
y-yc = +/-b*sqrt(1-(x-xc)^2/a^2). The sign can be chosed similarly.

Hope this helps

Jack

Edited by - liuxiaopi on 10/31/2008 04:32:34 AM
Go to Top of Page

iggboert

Germany
7 Posts

Posted - 11/07/2008 :  04:18:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot for helping me.
I successfully implemented the function.

Regards
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000