T O P I C R E V I E W |
Loksley |
Posted - 03/12/2009 : 2:18:51 PM 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.
|
2 L A T E S T R E P L I E S (Newest First) |
Loksley |
Posted - 03/13/2009 : 05:15:40 AM Many thanks Shirley, I'll try that. |
Shirley_GZ |
Posted - 03/13/2009 : 02:35:38 AM 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 |
|
|