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
 All Forums
 Origin Forum
 Origin Forum
 global fit with shared fit parameters

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dkimia1001 Posted - 01/16/2018 : 1:08:44 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
AmandaLu Posted - 01/16/2018 : 9:58:29 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000