Does MLab.std() dislike Numeric.UnsignedInt8?

K

Kyler Laird

Python 2.3.3 (#2, Jan 4 2004, 12:24:16)
[GCC 3.3.3 20031229 (prerelease) (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> import MLab
>>> import Scientific.Statistics
>>> MLab.std(Numeric.array([255,255], Numeric.Int0))
0.0
>>> MLab.std(Numeric.array([255,255], Numeric.UnsignedInt8))
181.01933598375618
>>> Scientific.Statistics.standardDeviation(Numeric.array([255,255], Numeric.UnsignedInt8))
0.0

It seems to me that the return values should all be the same. Am I missing
something simple?

--kyler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top