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
 Fitting curve including integrals

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
ararix Posted - 02/01/2016 : 3:25:11 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating SystemOrigin Ver. and Service Release (Select Help-->About Origin):
Operating System:Window 7

Hi, I am trying to fit my peak functions double sided exponentials.
y(x) = A*Exp(-|x-x0|/xc)
To consider Gaussian broadening of the peak induced by the experimental system.

I used Integral functions
Integration variable:t
Argument : x, IRF, x0 , xc

Return exp(-(x-t)^2/(2*IRF^2))*exp(-abs(t-x0)/xc);

Also defined the main functions and parameters as below.
Parameters : A=1, IRF=0.1, x0=0, xc=3,
Integral elements : Lower lmt = -inf, upper lmt : inf
x=x, IRF=IRF, x0=x0, xc=xc
Main function
y= A*integral(Integral, -inf ,inf ,x ,IRF ,x0, xc)

With this fitting, the function fit the data, but the fitted curve has several regions with a null value (0). Therefore, the fitted curve looks discrete. As shown below (the actual data and fitting functions are more complicate than I describe above, but basically the same.)

These null points disappear if I increase the IRF value from 0.1 to 0.5. So I guess this phenomena are affected by some integration time steps.

Could you let me know what causes this and how can I solve this unexpecting discontinuity fitted curve with integral functions?



:
1   L A T E S T    R E P L I E S    (Newest First)
jasonzhao Posted - 02/02/2016 : 04:55:04 AM
Hello,

Would you please send us the OPJ and FDF file via tech@originlab.com and quote this post.




Best regards!
Jason
OriginLab Technical Service

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