[Scipy-svn] r2603 - trunk/Lib/cluster

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Jan 24 04:22:15 EST 2007


Author: jarrod.millman
Date: 2007-01-24 03:21:49 -0600 (Wed, 24 Jan 2007)
New Revision: 2603

Modified:
   trunk/Lib/cluster/vq.py
Log:
fixed typo in docstring


Modified: trunk/Lib/cluster/vq.py
===================================================================
--- trunk/Lib/cluster/vq.py	2007-01-23 21:15:58 UTC (rev 2602)
+++ trunk/Lib/cluster/vq.py	2007-01-24 09:21:49 UTC (rev 2603)
@@ -94,13 +94,13 @@
                     The code book is usually generated using the kmeans
                     algorithm.  Each row of the array holds a different
                     code, and the columns are the features of the code.
-                                    #   c0    c1    c2   c3
-                        code_book = [[  1.,   2.,   3.,   4.],  #f0
-                                     [  1.,   2.,   3.,   4.],  #f1
-                                     [  1.,   2.,   3.,   4.]]) #f2
+                                    #   f0    f1    f2   f3
+                        code_book = [[  1.,   2.,   3.,   4.],  #c0
+                                     [  1.,   2.,   3.,   4.],  #c1
+                                     [  1.,   2.,   3.,   4.]]) #c2
         Outputs:
             code -- 1D array.
-                    If obs is a NxM array, then a length M array
+                    If obs is a NxM array, then a length N array
                     is returned that holds the selected code book index for
                     each observation.
             dist -- 1D array.




More information about the Scipy-svn mailing list