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
 global fit with shared fit parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dkimia1001

S. Korea
Posts

Posted - 01/16/2018 :  1:08:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2018 (64 bit) b.9.5.193
Operating System:Windows 7

Hello,

I have two data sets that need to be fitted simultaneously with two different fitting functions, which share common fitting parameters. What would be the best way of doing so? It seems I can only choose one fitting equation even for global fitting.

For example, Y1=a^b*sin(pi*c*x), Y2=d^b*cos(pi*c*x). Y1 and Y2 are different and the corresponding fitting functions are different as well, but the fitting parameters b and c are shared between the two. So the purpose is to simultaneously fit both data sets and find a, b, c, d that lead to the least error globally.

AmandaLu

439 Posts

Posted - 01/16/2018 :  9:58:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can combine 2 functions and use a parameter to switch between them. Take functions
Y1=a^b*sin(pi*c*x),
Y2=d^b*cos(pi*c*x)
for example. You can combine them like the following
Y=s*(a^b*sin(pi*c*x)) + (s-1)(d^b*cos(pi*c*x))
when fit with Y1 data, fix s = 1, when fit with Y2 data, fix s = 0. And you can share b and c as needed.

Please refer to the following tutorial for the details:
https://www.originlab.com/doc/Tutorials/Multi-Functions-Global-Fitting

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