Does MLab.std() dislike Numeric.UnsignedInt8?

Discussion in 'Python' started by Kyler Laird, Jan 18, 2004.

  1. Kyler Laird

    Kyler Laird Guest

    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
     
    Kyler Laird, Jan 18, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Jansson
    Replies:
    5
    Views:
    6,925
    Ivan Vecerina
    Mar 17, 2005
  2. Vinu
    Replies:
    4
    Views:
    525
    Jim Langston
    Jul 7, 2005
  3. Vinu
    Replies:
    0
    Views:
    479
  4. Geoffrey S. Knauth
    Replies:
    6
    Views:
    1,278
    Earl Purple
    Jan 18, 2006
  5. puzzlecracker
    Replies:
    3
    Views:
    2,246
    Mike Wahler
    May 8, 2006
  6. Jeffrey Walton
    Replies:
    10
    Views:
    1,233
    Mathias Gaunard
    Nov 26, 2006
  7. , India
    Replies:
    3
    Views:
    3,458
    James Kanze
    Nov 13, 2010
  8. Jan Kurzawski

    z-buffer mlab

    Jan Kurzawski, Dec 5, 2012, in forum: Python
    Replies:
    0
    Views:
    230
    Jan Kurzawski
    Dec 5, 2012
Loading...