<br><br><div class="gmail_quote">On Sun, May 20, 2012 at 9:53 AM, Andreas Hilboll <span dir="ltr"><<a href="mailto:lists@hilboll.de" target="_blank">lists@hilboll.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> On Sun, May 20, 2012 at 9:37 AM, Charles R Harris<br>
</div><div class="im">> <<a href="mailto:charlesr.harris@gmail.com">charlesr.harris@gmail.com</a> <mailto:<a href="mailto:charlesr.harris@gmail.com">charlesr.harris@gmail.com</a>>> wrote:<br>
><br>
><br>
><br>
>     On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll <<a href="mailto:lists@hilboll.de">lists@hilboll.de</a><br>
</div><div class="im">>     <mailto:<a href="mailto:lists@hilboll.de">lists@hilboll.de</a>>> wrote:<br>
><br>
>         Hi,<br>
><br>
>         I just noticed that there's two polyfit functions, one in<br>
>         numpy.lib.polynomial, and one in numpy.polynomial. What's the<br>
>         reason for<br>
>         this? The calling signatures aren't identical (the numpy.polynomial<br>
>         version supports weights), and I couldn't find a notice on why two<br>
>         versions exist.<br>
><br>
><br>
>     There are two different polynomial objects, Polynomial and poly1d.<br>
>     The Polynomial object is part of a newer group that also contains<br>
>     Lengendre, Chebyshev, etc., and doesn't have some of the problems<br>
>     that poly1d has. Poly1d is an older implementation.<br>
<br>
</div>I think it would be beneficial for the user if this fact was noted<br>
somewhere in the docstring of the Poly1d implementation. Especially<br>
since numpy.polyfit is pointing to that old implementation. When I saw<br>
the polyfit function in the numpy namespace, I didn't bother checking if<br>
there's anything more sophisticated.<br>
<br>
I could add the appropriate links in the "see also" sections of the<br>
Poly1d docstrings, if you guys agree.<br></blockquote><div><br>That would be useful.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="im"><br>
> Oh, and the polyfit function in polynomial.polynomial isn't meant to be<br>
> used directly, it is mostly there to support the fit class function of<br>
</div>> Polynomial. See the documentation here <<a href="http://preview.tinyurl.com/8289gfs" target="_blank">http://preview.tinyurl.com/8289gfs</a>>.<br>
<br>
Ah, okay. Thanks for that.<br>
<br></blockquote><div><br>Chuck <br></div><br></div>