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
 Peak fitting function without width in funtion

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
zknauss Posted - 08/30/2022 : 11:56:45 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 08/30/2022 : 4:11:15 PM
You just need to set the peak attributes. See below:


James
zknauss Posted - 08/30/2022 : 12:11:26 PM
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

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