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
 LabTalk Forum
 How to get the Errors parameters using NLfit scrip
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Loksley

France
18 Posts

Posted - 03/12/2009 :  2:18:51 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.: OriginPro 8 Sr4
Operating System:Xp Sp2

Hi everybody! I need to perform some NLFit on many datasets (4 peaks per column and about 100 columns) and plot the evolution of the NLFit parameters.
To build my script (LabTalk environment), I inspired myself from the following script example:
quote:

// Start a fitting session for col(A),col(B) using Gauss function and my named tree
nlbegin iy:=(1,2) func:=gauss nltree:=MyTree;
// Set the peak center as 5 and fixed
MyTree.xc = 5;
MyTree.f_xc = 1;
// Set the baseline as 0 and fixed
MyTree.y0 = 0;
MyTree.f_y0 = 1;
// Now fit
nlfit;
// and report results
type Baseline y0 is $(mytree.y0), Peak Center is $(mytree.xc), Width is $(mytree.w), Area is $(mytree.A);



$(mytree.y0) will return the fitted y0 value, but what about the associated error?
Where can we find the substitution variable for the errors?

Thank you for your help.

Shirley_GZ

China
Posts

Posted - 03/13/2009 :  02:35:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Loksley,

Please see this wiki page: http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:Nlbegin#Description

$(mytree.e_y0) will return the error value of y0.

Thanks,
Shirley



Originlab Technical Service Team
Go to Top of Page

Loksley

France
18 Posts

Posted - 03/13/2009 :  05:15:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks Shirley,
I'll try that.
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