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 for Programming
 Forum for Origin C
 Using Origin v7 with Gaussian functions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lsanii

.
Posts

Posted - 11/15/2004 :  2:50:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have absorbance data with two peaks, and I'm trying to fit the two components to two Gaussians. I've tried just doing analysis->fit guassian and all it does it fit one of the peaks and ignores the other.

I tried doing analysis->fit multi peaks->Guassian but then I don't know how to proceed from here and I can't find anything in the help menus to guide me. Please help!

easwar

USA
1965 Posts

Posted - 11/15/2004 :  3:05:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Not clear if you are trying to do this manually or programmatically...

If manually, you can invoke the Fit Multi Peaks->Gaussian menu item and then additional dialogs should come up that ask you for how many peaks you have, and an interactive cursor that lets you pick the initial peak position on the graph etc. If you are not seeing the secondary dialogs etc when operating manually, contact tech support to figure out what is going on.

Now, if you are planning to do this programmatically, you need to access the NLSF object and its properties. This can be done via LabTalk script or Origin C. For built-in peak functions such as Gaussian, there is a replicate property that can be used to set the number of replicates (peaks) in your data. You will then need to programmatically assign initial guess values and then do the fit. You can look up the NLSF object under the LabTalk documentation to see what property to set etc.

Easwar
OriginLab


Go to Top of Page

lsanii

.
Posts

Posted - 11/15/2004 :  3:16:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, I am seeing the secondary dialog boxes but getting confused on what to do. Maybe there isn't enough spetral overlap for the function to work right. Can I send you my data so you can see what I'm talking about?

Go to Top of Page

easwar

USA
1965 Posts

Posted - 11/15/2004 :  3:25:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please send the data/OPJ to tech@originlab.com and in your e-mail refer to this forum post.

Easwar
OriginLab

Go to Top of Page

lsanii

.
Posts

Posted - 11/15/2004 :  3:30:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, just sent the data to the address.

Go to Top of Page

Laurie

USA
404 Posts

Posted - 11/15/2004 :  3:49:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We got your data...thank you.

In Graph1 of your project, you have two datasets plotted. In order to fit the 2 datasets simultaneously to a gaussian function, you will need to select Analysis:Nonlinear Curve Fit:Advanced Fitting tool.

1. Function:Select will allow you to select the Gaussian function.
2. Action:Dataset will allow you to check the "Fit Multiple Datasets" checkbox, and then assign from Available Datasets the y1, x1 and y2, x2 variables. You can also specify the Parameters to share.
3. Action:Fit to fit the data.

I am also sending you a followup email.

OriginLab Technical Support
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