> I suggest you try either NonLinearFit() or
> NonLinearFitWithMaxIters() from the
> Advanced Analysis Library.
> According to the function help, GenLSFit() finds "...the best fit
> k -dimensional
> plane ...", i.e. it appears to be suitable only for linearly related data.
Thanks, I'd missed that one. Works like a charm.
I'm fitting a function to an array that is very close to the function, so I
thought the convergence would be excellent, but I had to use the MaxIter
feature: with some initial values I get instant convergence and with other
(close) values, after 10 minutes the CPU is still chugging along. I guess it
takes a full mathematical treatise to know why, right ?
--
Guillaume Dargaud
http://www.gdargaud.net/