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
 X-error in NLSF

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
Belsinga Posted - 10/25/2010 : 08:17:32 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8 SR 6
Operating System: Win XP

Dear all,

I need to know how I can fit a dataset with nlsf, where the error in x is situated in a column. When I dedicate this column as "X-error", the script delivers the following error:

"External call error"

If this column (with x errors) is used as regular Y values, I can fit the data, but it uses the column as "Y-error". Can someone help me?

Thanks in advance

(in the code, FT_Q2 is the name of the column where my values for x-error are.)

******************************************
code:

nlsf.cleanupfitdata();
nlsf.func$ = Allometric1;
a=1;
b=1;

nlsf.numfitsets = 1;
nlsf.numIndep = 1;

nlsf.dataBegin = 1;
nlsf.dataEnd = vsA;
limit FT_Cell3;
nlsf.fitdata1$ = FT_Cell3;
nlsf.funcx$ = FT_Transmit;
nlsf.w$ = FT_Q2;
nlsf.wtype = 1;

nlsf.xPoints = vsA;
nlsf.fit(100);
nlsf.makecurve(func);
nlsf.pasteParams(R);
nlsf.paramWks(Param_cell3);
2   L A T E S T    R E P L I E S    (Newest First)
Belsinga Posted - 10/28/2010 : 09:01:45 AM
Ok,

But what about leaving the x-error column in the worksheet (still defined as "x-err"). Won't Origin pick this up automatically as an uncertainty?

Thanks,
Boudewijn
larry_lan Posted - 10/26/2010 : 01:53:22 AM
Hi:

Origin neither supports fitting X-Error as weight, nor fitting dataset that set as X-Error. If you want to keep FT_Q2 as "X-Error" column type, maybe you can duplicate it as "Y" (or Y-Error) column type and use data in this new column as weights.

Thanks
Larry
OriginLab

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