Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Does MLab.std() dislike Numeric.UnsignedInt8?

Reply
Thread Tools

Does MLab.std() dislike Numeric.UnsignedInt8?

 
 
Kyler Laird
Guest
Posts: n/a
 
      01-18-2004
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.UnsignedInt)
181.01933598375618
>>> Scientific.Statistics.standardDeviation(Numeric.ar ray([255,255], Numeric.UnsignedInt)
0.0

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

--kyler
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: I strongly dislike Python 3 Thomas Jollans Python 52 07-01-2010 11:07 PM
I strongly dislike Python 3 Stefan Reich Python 1 06-27-2010 06:59 AM
Does Mozilla dislike scripts? Vartkes Firefox 5 01-10-2005 11:33 AM
Shared, why not a 'Local Shared' (re: Session and ViewState dislike) ben ASP .Net 3 11-15-2004 03:04 PM
a growing dislike of custom user controls V. Jenks ASP .Net 5 04-29-2004 03:34 PM



Advertisments