[Numpy-discussion] Getting the indexes of the myarray.min()

Warren Focke focke at slac.stanford.edu
Thu May 13 14:10:07 EDT 2004


On Thu, 13 May 2004, Russell E Owen wrote:

> Statistics is another area where multiple return values could be of
> interest -- one may want the mean and std dev, and making two passes
> is wasteful (since some of the same info needs to be computed both
> times).

Single pass std deviations don't work very well if you've got a lot of
data points and the std deviation is small compared to the average.
I'm not arguing aginst including them, but maybe the documentation for
such a function should include a caveat.

Warren Focke





More information about the NumPy-Discussion mailing list