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
 Instability of implicit sphere fitting function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JosefL

Germany
1 Posts

Posted - 10/09/2017 :  11:00:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: OriginPro 9.1 OG (64-bit)
Operating System: Windows 7 Enterprise


Hello dear Origin-Community!

Actually I'm working on an implicit fitting function for a sphere.

(f = (x-x0)^2+(y-y0)^2+(z-z0)^2-R^2)

I wrote a very simple "Parameter Init" in form of

x0 = max(x_data);
y0 = max(y_data);
R = 5000;
z0= 5000;
Due to the implicit form I have to use the orthogonal distance regression.
The value 5000 is a result of already observed measurement values and also the problem I'll need help with. The max data for x and y works quite fine as a result of the Situation in the coordinate Systems.

Depending on what value I choose (3000-7000) for R and z0 (same as R due to surface conditions) the result of the fit shows very different results.
None of the variables is allowed to be fixed and so this might be the first problem.
Also the surface of the measurement values could be a reason for the instability of the results.
Compared to a radius of about 7 meters (for the fitted sphere) the measurement surface is just 15 mm x 15 mm....

Hopefully someone has the idea to solve my problem and bring some stability to the resulting parameters of the implicit fitting function.

Kind regards,

Josef




AmandaLu

439 Posts

Posted - 10/10/2017 :  05:33:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The fitting result of User Defined Function heavily depends on the initial values you give. And orthogonal distance regression method has more affect than Levenberg Marquardt. So you must provide a good initial value, based on your background knowledge. And you can check Adj. R-Square to judge if the fitting result is good or not.

Thanks,
Amanda
OriginLab Technical Service

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