[AstroPy] non-linear least square fitting in python

gonghang.naoc ghang.naoc at gmail.com
Thu May 14 05:52:00 EDT 2015


Hi all,
We can use scipy.optimize.leastsq to do least square fitting in python.
However we need to make an initial guess. (
http://python4mpia.github.io/fitting_data/least-squares-fitting.html). So I
am not sure we can get a global optimum.

There is other simple way we can fit a *y=a*e^-(b*x)+c* curve? My data are
Xn, Yn and ERRORn. A constant c makes the fitting difficult since we can
not make a log on both sides and use linear fitting any more.

Thank you.
best
Hang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20150514/6b723be2/attachment.html>


More information about the AstroPy mailing list