Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
vassilios_1
Posted - 12/02/2003 : 11:01:26 AM :( I'm trying to fit a selected part of a function curve. Although I use nlsf.dataBegin and nlsf.dataEnd my script uses always the complete x-column --> so the fit result is total rubbish. Here the code:
[EXECFIT] nlsf.func$ = cubic; nlsf.dataBegin= Fstart; //some start value for fitting nlsf.dataEnd = Fend; nlsf.xBegin = fxdata[1]; //some start value for plotting the fit nlsf.xEnd = fxdata[2]; nlsf.cleanupfitdata(); nlsf.fitdata$ = Polyfit_TotMit; nlsf.xmode = 4; nlsf.funcx$ = Polyfit_PolyX; //dataset to store nlsf.funccol$ = Polyfit_PolyY; //dataset to store fitted Y values nlsf.iterate(20); nlsf.makecurve(func); //dataset generated for the fitted curve
Has anyone an idea or working code? Thanks! :)
2 L A T E S T R E P L I E S (Newest First)
vassilios_1
Posted - 12/02/2003 : 12:52:29 PM All right! It solves the problem. Thanks for your help!
Mike Buess
Posted - 12/02/2003 : 12:18:05 PM Try moving nlsf.cleanupfitdata() to the beginning of the script.