[SciPy-User] Curve fit: strange documentation

josef.pktd at gmail.com josef.pktd at gmail.com
Fri Feb 7 11:57:03 EST 2014


On Fri, Feb 7, 2014 at 11:47 AM, Gabriele Brambilla <
gb.gabrielebrambilla at gmail.com> wrote:

> I think there is a misunderstanding in the documentation:
>
>
> *sigma* : None or N-length sequence
>
> If not None, this vector will be used as relative weights in the
> least-squares problem.
>
>
> usually sigma is the way in which you indicate an error of a measure and
> the weight for that measure is w=1/sigma.
>
> this vector is the vector of errors or the vector of weights?
>


"If not None, this vector will be used as relative inverse weights in the
least-squares problem."

data is transformed by (y - f(x)) * 1 / sigma

which would make it clearer if that were in the docstring.

Josef



>
> thanks
>
>
> Gabriele
>
> _______________________________________________
> 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/20140207/36515b41/attachment.html>


More information about the SciPy-User mailing list