[SciPy-User] Sum of squared errors in leastsq
Fri Jun 29 11:14:45 CDT 2012
On Fri, Jun 29, 2012 at 11:36 AM, Jose Guzman <firstname.lastname@example.org>wrote:
> Dear Scipy users,
> I am trying to fit some data to different models with curve_fit. Does
> curve_fit or leastsq to return the sum of the squared errors or should I
> compute it manually*?
> Thanks a lot in advance!
I believe that curve_fit will compute the sum of squares of the residuals
given a function, xdata, and ydata. Leastsq assumes your function returns
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User