<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I think this sounds like a great idea. &nbsp; &nbsp; The lowest level that makes sense is the correct place for them.&nbsp;<div><br></div><div>-Travis</div><div><br><div><div><br></div><div><br><div><div>On Sep 17, 2011, at 1:52 PM, Charles R Harris wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<br><br>I'd like to start a discussion about modifications to lstsq to accommodate the new masked arrays and move weights, scaling, and covariance determination down to a lower common level. This is motivated by Travis' recent changes to polyfit as well as my own various polynomial fits that also allow weights. Also, once these features are pushed down to lstsq, it should be possible to push them down further into a c-wrapper for the LAPACK routines, which is where I really think they belong in the long run.<br>

<br>Because missing values will effect the std/var/cov in the same way as weights of zero, I think support for missing values and weights go naturally together. Support for scaling and covariance are less closely tied, but they are both features I use all the time in practice and having them available will be useful.&nbsp; It might also be nice to change the return signature, though this would require a new function. I rather like the idea of returning the coefficients and a dictionary, where everything not a coefficient gets stuffed into the dictionary. In this regard see also Denis Laxalde's <a href="http://tinyurl.com/3sbwgxy">proposal</a>, something we might want to be consistent with.<br>
<br>Thoughts?<br><br>Chuck <br>
_______________________________________________<br>NumPy-Discussion mailing list<br><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/numpy-discussion<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>---</div><div>Travis Oliphant</div><div>Enthought, Inc.</div><div><a href="mailto:oliphant@enthought.com">oliphant@enthought.com</a></div><div>1-512-536-1057</div><div><a href="http://www.enthought.com">http://www.enthought.com</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></div></body></html>