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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 multiple curves 2 gaussian peaks fitting

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
thitchen Posted - 05/09/2012 : 4:44:30 PM
Origin Ver. 8.6.0 and Service Release 2 (Select Help-->About Origin):
Operating System: win7 prof.

Hi,

I have plenty of graphs with each having ~10 curves. How can I do the 2 Gaussian peaks fitting for each curve and save the resulting parameters, i.e. peak position, width, and height etc. for each curve in a new workbook? I'm expecting some Loop command can do this kind of job. Thanks in advanced.

3   L A T E S T    R E P L I E S    (Newest First)
Kathy_Wang Posted - 05/11/2012 : 01:43:53 AM
For the first question,
The step "select columns B,C,D and E" of "B. Using the Analysis Template-Many Columns" means that we select this data range and intend to do the same analysis for those columns. It is just an example.

In fact, you may also do the data selection in the Batch processing dialog, that you first choose a type of "Data Source", which can be either "Import From Files" or "Use Existing XY Datasets" , and then specify other files, or other columns in current workbook you want to analyze.

For the second one,
If you would like to specify baselines and peak positions, you could use the Peak Analyzer tool, which you can open from top menu "Analysis:Peaks and Baseline:Peak Analyzer". This tool will help you to analyze with baseline and find your peaks. You may find some detailed information in the following page:
http://www.originlab.com/www/helponline/Origin/en/Category/Peak_Analyzer.html


Kathy
Originlab
thitchen Posted - 05/10/2012 : 5:45:12 PM
Thanks, Kathy.

But what do you mean by "select columns B,C,D and E" in step 2)of "B. Using the Analysis Template-Many Columns"?

And is there a way that I can specify the baseline and peak positions?
Because, those curves share the same baseline and almost the same peak positions.

Many thanks.

quote:
Originally posted by Kathy_Wang

Hi,
You may try the batch processing. Basically you create an analysis template of NLFit and then use this template to analyze your other data.

Here I provide an example on how to use this method:

A.Creating an Analysis Template

1) import ..Samples\Curve Fitting\Multiple Gaussians.dat, by "File:Import:SingleASCII";
2) select Column B and choose "Analysis : Fitting : Nonlinear Curve Fit : Open Dialog" from the menu (or press Ctrl+Y)
3) choose "Function : Gauss", go to "Advanced", open "Replica" branch to set replica to 1 for 2 peaks, you may do other settings if you want.
4) click Fit
5) on the FitNL1 Report sheet, right-click on the word Parameters above the parameter table and choose "Create Copy as New Sheet"
6) rename the new sheet something such as "Results"
7) delete any columns you won't need
8) choose "File : Save Workbook as Analysis Template" and give it a descriptive name such as "My Gauss Results"

B. Using the Analysis Template-Many Columns

1) make your original worksheet active
2) select columns B,C,D and E
3) select "File : Batch Processing" from the menu
4) select "Repeatedly Import into Active Analysis Template Window" for Batch Processing Mode, or you can load the template by your own
5) select "Data Source : Use Existing XY Datasets"
6) set Data Sheet as the original sheet and Result Sheet as the one you created. (This should be the case already if you follow the instructions above.)
7) click OK

And you should then have one worksheet containing all your fitting results.

Hope this information helps!


Kathy
Originlab

Kathy_Wang Posted - 05/10/2012 : 05:51:11 AM
Hi,
You may try the batch processing. Basically you create an analysis template of NLFit and then use this template to analyze your other data.

Here I provide an example on how to use this method:

A.Creating an Analysis Template

1) import ..Samples\Curve Fitting\Multiple Gaussians.dat, by "File:Import:SingleASCII";
2) select Column B and choose "Analysis : Fitting : Nonlinear Curve Fit : Open Dialog" from the menu (or press Ctrl+Y)
3) choose "Function : Gauss", go to "Advanced", open "Replica" branch to set replica to 1 for 2 peaks, you may do other settings if you want.
4) click Fit
5) on the FitNL1 Report sheet, right-click on the word Parameters above the parameter table and choose "Create Copy as New Sheet"
6) rename the new sheet something such as "Results"
7) delete any columns you won't need
8) choose "File : Save Workbook as Analysis Template" and give it a descriptive name such as "My Gauss Results"

B. Using the Analysis Template-Many Columns

1) make your original worksheet active
2) select columns B,C,D and E
3) select "File : Batch Processing" from the menu
4) select "Repeatedly Import into Active Analysis Template Window" for Batch Processing Mode, or you can load the template by your own
5) select "Data Source : Use Existing XY Datasets"
6) set Data Sheet as the original sheet and Result Sheet as the one you created. (This should be the case already if you follow the instructions above.)
7) click OK

And you should then have one worksheet containing all your fitting results.

Hope this information helps!


Kathy
Originlab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000