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
 Gauusian+Loentzian fit
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

srira

India
Posts

Posted - 09/28/2005 :  10:12:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System:XP SP2
How do I fit both types of peaks in a spectrum simultaneously?Do I need to specify both equations in NLSF?

easwar

USA
1964 Posts

Posted - 09/28/2005 :  12:09:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You will need to define an new FDF that combines the peak equations. So for example if you have a dataset say with one gaussian peak and one lorentzian peak, you could define the FDF as:

y=gauss(x,y0,xc1,w1,A1) + lorentz(x,y0,xc2,w2,A2);

where y0 is a common offset (does not have to be), and xc1, w1, A1 are parameters for the gaussian and xc2, w2, A2 are parameters for the lorentzian.

Set the Form drop-down on the function definition page to "Y-Script" (in later versions, uncheck the Origin C check box and then change the drop-down).

If you have more than a couple of peaks and want to consider more than just two possible peak functions, the above obviously becomes tedious. Then you may want to look at the Peak Fitting Module in which you can fit much more than two peaks, and also arbitrarily assign different peak functions to each peak in the data etc.

Easwar
OriginLab

Go to Top of Page

srira

India
Posts

Posted - 09/29/2005 :  12:25:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi
Thanks!
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