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
 X-error in NLSF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Belsinga

Netherlands
28 Posts

Posted - 10/25/2010 :  08:17:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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);

larry_lan

China
Posts

Posted - 10/26/2010 :  01:53:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Belsinga

Netherlands
28 Posts

Posted - 10/28/2010 :  09:01:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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