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

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top