Author |
Topic |
|
radovanherchel
Czech Republic
Posts |
Posted - 01/15/2008 : 04:24:49 AM
|
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
|
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
|
|
|
u@nlo
India
10 Posts |
Posted - 09/04/2012 : 02:14:34 AM
|
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> |
|
|
easwar
USA
1964 Posts |
|
|
Topic |
|
|
|