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
 How to get the Errors parameters using NLfit scrip

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

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