The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums  Origin Forum  Origin Forum  about the curve fitting (part of the circle) New Topic  Reply to Topic  Printer Friendly
Author  Topic

Taiwan
2 Posts

 Posted - 05/25/2012 :  02:56:57 AM Hello,I have met some problem as I try to fit the following curve.this curve actually is part of a circle.so I use the advanced fiting tool to create a circle function like this,y = b + sqrt(r^2-(x-a)^2)where x is the independent var., y is the dependent var. a, b, and r are the fitting parameters. (and the initial value of parameter are set x=-1, y=-1, and r=1, separately.)after set, I try to run the non-linear curve fitting by this functionbut the fitting function doesn't work, the fitting parameter are unreasonable, there is even no fitting line on the result graph!have anyone ever met the same problem before?could you give some hint? I'll very appreciate it.

USA
993 Posts

 Posted - 05/25/2012 :  09:59:55 AM Hi taufiki1029,> y = b + sqrt(r^2-(x-a)^2)> a, b, and r are the fitting parameters.> the initial value of parameter are set x=-1, y=-1, and r=1So, you didn't give the initial parameter values for a and b?If you didn't, you need them. (Seems your r's initial value is too small. If I were, I would try r=400000, and a=0 , b=-400000 . )Hope this helps.--Hideo FujiiOriginLab Edited by - Hideo Fujii on 05/25/2012 10:01:34 AM

Taiwan
2 Posts

 Posted - 05/27/2012 :  02:56:17 AM Thanks foy your reply, Hideo Fujii,I follow your suggestion to change my initial parameter values and try to fit again.at first run, the Origin tell me to fix the a = 0 and try againI follow it,but in the second run, the result seems doesn't like what I want,I don't know what is the problem?Do I just keep changing the initial values, keep try and error?or something I can modify?thanks to your kindness again.

USA
993 Posts

 Posted - 05/29/2012 :  4:02:11 PM Hi taufiki1029,As I rescaled both X and Y of your graph to have the same scales (see Graph1 in the screenshot), I noticed that your data points are on a almost vertical line - therefore the radius may be huge. Maybe that's the reason why Origin's fitter had a hard time. As an experimented, I rescaled X divided by 20, Y divided by 1000, and performed to fit, and got a good result (of course, the curve is elliptic, not circular because of the different rescaling factors). Hope you can success by taking account with the above. --Hideo FujiiOriginLab
Topic
 New Topic  Reply to Topic  Printer Friendly Jump To: Select Forum Origin Forum       Origin Viewer and Orglab Forum       Origin Forum Origin Forum for Programming       LabTalk Forum       Forum for Origin C       Forum for Automation Server/COM and LabVIEW Japanese Origin Forum       Origin日本語フォーラム (Japanese Origin Forum) Origin on Linux       The Origin on Linux Forum Private Forums       Distributor Forum  -------------------- Home Active Topics Frequently Asked Questions Member Information Search Page
 The Origin Forum © 2008 Originlab Corporation