[SciPy-User] Return sigmas from curve_fit
Travis Oliphant
travis at continuum.io
Tue Oct 16 14:11:20 EDT 2012
If I understand your question, then taking the square root of the diagonal elements of the second return from curve_fit.
np.sqrt(pcov.diagonal())
Should give you the standard deviations...
-Travis
On Oct 16, 2012, at 1:07 PM, Gökhan Sever wrote:
> Hello,
>
> Is there a way to return standard deviations of the best fit parameters from curve_fit like in IDL's curvefit function?
>
>
> PS:
> http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html
> http://www.exelisvis.com/docs/CURVEFIT.html
>
> --
> Gökhan
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20121016/a509b112/attachment.html>
More information about the SciPy-User
mailing list