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
 Fit Multi-Peaks vs user-defined function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

radovanherchel

Czech Republic
Posts

Posted - 01/15/2008 :  04:24:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 8 SR1
Operating System: WinXP

Multi-peaks feature is very nice, but I would like to use it for my own defined functions, I mean, not only for Gaussian or Loretzian.
Is there some way how to add my own function into menu or some way how to modify some code?

Thank you in advance for help

easwar

USA
1964 Posts

Posted - 01/15/2008 :  12:03:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Radovan,

Yes, the multi-peak fit dialog launched from the analysis menu currently limits the peaks to gaussian and lorentzian only.

You could however do the following:
1> Make a graph of your multi-peak data
2> With graph active, click the "Regional Data Selector" button in the Tools toolbar (7th button) and choose "Selection on Active Plot" from the flyout
3> Go to the graph and draw rectangles to define each peak area separately, thus basically defining multiple ranges from the same dataset - note that there can be overlap in the ranges such as say overlap in baseline part
4> Once you have defined a range for each peak in your data, bring up the NLFit tool from the Analysis->Fitting->Nonlinear Curve Fit menu item. The fitter will automatically recognize that you have multiple ranges
5> Select your user-defined fitting function. If you have written Parameter Initialization code for your function, that code will run and initialize each range separately and generate initial parameter values. If not you need to click the Parameter tab and specify appropriate initial values
6> Click on the Data Selection entry in the left and optionally change the "Multi-Data Fit Mode" drop-down to "Global Fit". This will allow you to share parameters between the various ranges, such as say sharing a common y-offset

You can then complete the fit and generate the report.

Easwar
OriginLab


Go to Top of Page

u@nlo

India
10 Posts

Posted - 09/04/2012 :  02:14:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi easwar


Can you please tell me about multi peak fit using user defined fucntion which contains two or more functions..it means my data has gaussian and laorentzian peaks how can i go for user defined function for it and hwo can i data for the peaks individually..

Regarda
U@y

<b><i>U@NLO</i></b>
Go to Top of Page

easwar

USA
1964 Posts

Posted - 09/04/2012 :  4:05:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi U@y,

So what you are looking for is to fit multiple peaks in a single dataset, where each peak is to be fit with a different peak function? If yes, the best way to do this is to use the Peak Analylzer tool available in OriginPro:
http://originlab.com/index.aspx?go=Products/Origin/DataAnalysis/PeakAnalysis&pid=1763

Easwar
OriginLab
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