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 742 2008-07-05 07:42:38Z glandrum $
     2  #
     3  # Copyright (C) 2001-2008  greg Landrum
     4  #
     5  #   @@ All Rights Reserved  @@
     6  #
     7  """ contains code for standardization of data matrices for clustering
     8
     9
    10  """
    11  from ML.Data import Stats
    12
    13 -def StdDev(mat):
    14    """ the standard deviation classifier
    15
    16     This uses _ML.Data.Stats.StandardizeMatrix()_ to do the work
    17
    18    """
    19    return Stats.StandardizeMatrix(mat)
    20
    21  methods = [
    22    ("None",lambda x:x,"No Standardization"),
    23    ("Standard Deviation",StdDev,"Use the standard deviation"),
    24    ]
    25