[Numpy-discussion] average() or mean() errors

Keith Goodman kwgoodman at gmail.com
Fri Jan 26 11:27:31 CST 2007


On 1/23/07, Daniel Smith <neuromathdan at gmail.com> wrote:
> When calling the average() or mean() functions on a small array (3
> numbers), I am seeing significant numerical errors (on the order of 1%
> with data to 8 significant digits). The code I am using is essentially:
>
> A = zeros(3)
>
> A[i] = X
>
> B = average(A)

That sounds interesting. Could you show me an example with numbers?


More information about the Numpy-discussion mailing list