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 two Gaussians & constant integral

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
Valerietti Posted - 06/06/2019 : 06:49:27 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro2017
Operating System: Windows


I have a set of 10 curves that I'd like to fit with two partially overlapping gaussians.

With the "global fit" option of the non-linear curve fitting, I reproduced fairly well the curves.

However, I'd like to add the constraint that keeps constant the sum of the two gaussian curves, i.e. the global integral of the fitted curves.

May anyone help me with that?
Thank you in advance.
2   L A T E S T    R E P L I E S    (Newest First)
Valerietti Posted - 06/06/2019 : 11:54:52 AM
Hi Malgoska,
Thank you for your help!
I'm gonna try this straight away!
malgoska Posted - 06/06/2019 : 07:42:55 AM
Hi,
you can try creating your own function defined like that:

y = y0 + A1/(w1*sqrt(pi/(4*ln(2)))) * exp(-4*ln(2)*(x-xc1)^2/w1^2) + (S-A1)/(w2*sqrt(pi/(4*ln(2)))) * exp(-4*ln(2)*(x-xc2)^2/w2^2)

with parameters: A1, w1, xc1, S, w2, xc2, y0.
with S being be the sum of the two areas, (S-A1) would be the area of the second Gaussian.
With such a function you can perform a global fit on 10 curves and share S (and anything else) among the fits. Of course, you can set it as constant value, as well.
Hope it helps, best regards,
malgoska

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