T O P I C R E V I E W |
srira |
Posted - 09/28/2005 : 10:12:33 AM 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? |
2 L A T E S T R E P L I E S (Newest First) |
srira |
Posted - 09/29/2005 : 12:25:02 PM Hi Thanks! |
easwar |
Posted - 09/28/2005 : 12:09:00 PM 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
|
|
|