changeset 4:9fbd50ad335b

Remove unused code
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Tue, 06 Dec 2011 11:03:12 -0500
parents 069653867b3b
children 87433ad16bbf
files findClosestCentroids.m
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/findClosestCentroids.m
+++ b/findClosestCentroids.m
@@ -5,9 +5,6 @@
   ##   vector of centroid assignments (i.e. each entry in range [1..K])
   ##
 
-  ## Set K
-  K = rows (centroids);
-  
   ## Using broadcasting (auto BSX) as available in Octave 3.5.0+
   d = sum ((permute (X, [1,3,2]) - permute (centroids, [3,1,2])).^2, 3);
   [~, idx] = min (d, [], 2);