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
 A problem of user-defined function fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hjskofficial

8 Posts

Posted - 10/16/2023 :  03:42:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2018
Operating System: Windows 10

Hello everyone,

I defined a Fano function for fitting a curve recently. The function is written as y=y0+H*(1+(x-xc)/(q*w))^2/(1+((x-xc)/w)^2), where y0 is offset; H is amplitude; xc is x center; q is a Fano parameter; w is x width.

While I fitted a curve, the Origin always said "Fit did not converge - mutual dependency exists between parameters. You may have overparameterized the fitting function. Fixing one of them may eliminate this problem." However, no matter I fixed any of the five parameters mentioned above, the same message was always shown.

Does anybody know how to solve the problem?

Thank you very much.

YimingChen

1592 Posts

Posted - 10/16/2023 :  09:28:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
After you fix the parameters, do you still see strong dependencies between fitting parameters in the parameters table in the NLFit dialog?
Could you share your data here for us to test? Thanks.

James
Go to Top of Page

hjskofficial

8 Posts

Posted - 10/16/2023 :  10:48:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi James,

Thank you very much for your message. My data and related NLFit dialog can be accessed through the link as following.

https://www.dropbox.com/scl/fi/jx9l76xajpmfs7zs3dxho/Self-defined-Fano-function-fitting.zip?rlkey=eu5yh6fkn8453o24uutq434t4&dl=0

Sincerely,

HJS

quote:
Originally posted by YimingChen

After you fix the parameters, do you still see strong dependencies between fitting parameters in the parameters table in the NLFit dialog?
Could you share your data here for us to test? Thanks.

James


Go to Top of Page

YimingChen

1592 Posts

Posted - 10/16/2023 :  1:48:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please set the initial values of the parameters to be close to the values shown below.


James
Go to Top of Page

hjskofficial

8 Posts

Posted - 10/16/2023 :  10:25:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi James,

Thank you very much for your kind instruction.

Are the initial values universal for all the curve fitting by Fano function? How to choose appropriate initial values?

Sincerely,

HJS

quote:
Originally posted by YimingChen

Please set the initial values of the parameters to be close to the values shown below.


James

Go to Top of Page

YimingChen

1592 Posts

Posted - 10/17/2023 :  11:15:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please check the figure below on initializing the parameters in the Fitting Function Builder dialog.
Go to Top of Page

hjskofficial

8 Posts

Posted - 10/20/2023 :  04:54:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi James,

Thank you very much for your kind reply. All the Fano-like curves are fitted successfully.

Sincerely,

HJS

quote:
Originally posted by YimingChen

Please check the figure below on initializing the parameters in the Fitting Function Builder dialog.


Go to Top of Page

aplotnikov

Germany
160 Posts

Posted - 10/20/2023 :  09:08:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply


Seems, that LaTeX support may be helpful on the forum.
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