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
 non-linear fit with user-defined 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

angelique

Germany
Posts

Posted - 06/02/2004 :  08:23:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hallo All!

It's the first time for me to ask a question in such an environment and so I hope someone understands my problem and can help me.
I try to fit data with a self-defined fit function. In its simplest mode it looks like: y = a * sqrt(R*R - (x-x0)*(x-x0)) for x>n0-R and x<n0+R and y = 0 for all other cases.
For the beginning I try to fit data that I produced with this function (so that I can be sure that I have the right model), but I must recognize that the solution of my fit problem strongly depends on the starting values of the fit parameters (especially of R). Could it be that I have forgotten something in defining my function or is this normal (because of the "squareroot"?)? I just hope that ORIGIN could do better if I would do ...? because in "real life" I don't know the values of the parameters and is it not satisfactory to start many fit routines varying the starting values to find the solution that matches best with reality.
What should I do?
Thanks and many greetings!

angelique

easwar

USA
1964 Posts

Posted - 06/02/2004 :  2:54:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Angelique,

One reason for the "ending" values of the parameters being dependent on what the starting/initial values were, is because the fit is not really converging - which could be due to the chi-sq surface being rather flat and so the minimization just wanders around a flat parameter space and ends up in different places depending on where you started and how many times you performed the iteration etc.

The above could happen if, your function is over-parametrized; has too many parameters and could be consolidated/rewritten to have fewer parameters, or if there is too much dependency between some of the parameters etc.

It is hard to reproduce what you are seeing just by trying to create a function with your expression and then trying to recreate your situation. Best would be for you to send an OPJ with data, and your associated FDF file to tech support so they could examine and comment.

Easwar
OriginLab


Go to Top of Page

angelique

Germany
Posts

Posted - 06/03/2004 :  11:26:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you!
Now I sent my files to technical support and I'm curious about their answer.
Greetings, angelique
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