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
 Peak fitting function without width in funtion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

zknauss

USA
72 Posts

Posted - 08/30/2022 :  11:56:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a a peak which is fit by two separate functions on the right and left sides of the curve. On the left it is a Boltzmann functin and on the right its a Two-phase exponenial decay function. Niether of these functions utilize width in there formulas but peak functions requier a variable width to be in the function/parameter window. How can I get this to work?

Thanks,

ZTK

zknauss

USA
72 Posts

Posted - 08/30/2022 :  12:11:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Current function is:
if(x<Xc)
y=A1+(y0-A1)/(1+exp((x-XcL)/dx));
else
y=A1*exp(-1/t1)+A2*exp(-x/t2+y0);

// Fit Parameter(s):
double y0, double Xc, double A1, double XcL, double dx, double A2, double t1, double t2,

Meanings = Base,Center,Amplitude,Center L,Rise dx,Amplitude RP2,decay dx1,decay dx 2

Total width should be width of left + Width of right
w=w1+w2
but Im not sure how that should be added into the formula


ZTK
Go to Top of Page

YimingChen

1669 Posts

Posted - 08/30/2022 :  4:11:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You just need to set the peak attributes. See below:


James
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