ML.Cluster.Standardize

Package ML :: Package Cluster :: Module Standardize |
[hide private]
[frames] | no frames]

# Source Code for Module ML.Cluster.Standardize

     1  # $Id: Standardize.py 2 2006-05-06 22:54:39Z glandrum $
     2  #
     3  # Copyright (C) 2001-2006  greg Landrum
     4  #
     5  #   @@ All Rights Reserved  @@
     6  #
     7  """ contains code for standardization of data matrices for clustering
     8
     9
    10  """
    11  from Numeric import *
    12  from ML.Data import Stats
    13
    14 -def StdDev(mat):
    15    """ the standard deviation classifier
    16
    17     This uses _ML.Data.Stats.StandardizeMatrix()_ to do the work
    18
    19    """
    20    return Stats.StandardizeMatrix(mat)
    21
    22  methods = [
    23    ("None",lambda x:x,"No Standardization"),
    24    ("Standard Deviation",StdDev,"Use the standard deviation"),
    25    ]
    26