[SciPy-user] Problem with scipy.optimize.leastsq

Mark Bakker markbak at gmail.com
Mon Mar 10 13:07:01 EDT 2008


I think Dave is right.
Whenever I use leastsq, I have a function that gives an array of errors.
Leastsq does the squaring and summing for you,
Mark


I may be on the wrong track here, but what happens if you remove the
>  squaring
> and summing from the chi2gauss - i.e.
>
> def chi2gauss(ARR):
>    a,b,x0,y0,s = ARR
>    noisemap = sqrt(im+RON**2)
>    return (im - gi(a,b,x0,y0,s,im))/noisemap
>
>
> -Dave
>
>
>
> ------------------------------
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
> End of SciPy-user Digest, Vol 55, Issue 19
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080310/6aef9d76/attachment.html>


More information about the SciPy-User mailing list