T O P I C R E V I E W |
Frank_H |
Posted - 06/21/2005 : 3:39:51 PM Origin Version 7.5 SR5: Operating System: Win XP
I am currently working on some automated fit procedure with NLSF. I would like to set the dependend variable y and the independend x freely. I tried to use the following:
// Init using nlsf = LabTalk.NLSF; nlsf.init(); nlsf.Func$ = "gauss"; nlsf.cleanUpFitData(); // Set data nlsf.setIndep("x",dsx_name); // set x dataset nlsf.setDepend("y",dsy_name); // set y dataset etc. which did not work. Using instead for the data assignment:
// Set data nlsf.fitData1$ = dsy_name;
with proper column settings worked fine. But I would like to be able to use x-data either without setting the column type as x or even without being in the same worksheet as the y-data. Is it just the wrong syntax for nlsf.setIndep/setDepend ? The help file is not completely clear to me.
Thanks and Regards Frank |
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 06/21/2005 : 4:01:44 PM Hi Frank,
I think there are quirks with nlsf.setIndep() and nlsf.setDepend(). Try this instead...
nlsf.x$ = dsx_name; // X dataset nlsf.fitdata1$ = dsy_name; // Y dataset - or - nlsf.y1$ = dsy_name;
...I don't think that dsx_name needs to be an X column. It certainly does not need to be in the same wks as dsy_name.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 06/21/2005 4:12:42 PM |
|
|