Mercurial > hg > machine-learning-hw7
changeset 5:87433ad16bbf
Fix style
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 06 Dec 2011 11:49:13 -0500 |
parents | 9fbd50ad335b |
children | 6d94b2bafcd1 |
files | kMeansInitCentroids.m |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/kMeansInitCentroids.m +++ b/kMeansInitCentroids.m @@ -1,12 +1,11 @@ function centroids = kMeansInitCentroids(X, K) -##KMEANSINITCENTROIDS This function initializes K centroids that are to be -##used in K-Means on the dataset X -## centroids = KMEANSINITCENTROIDS(X, K) returns K initial centroids to be -## used with the K-Means on the dataset X -## + ##KMEANSINITCENTROIDS This function initializes K centroids that are to be + ##used in K-Means on the dataset X + ## centroids = KMEANSINITCENTROIDS(X, K) returns K initial centroids to be + ## used with the K-Means on the dataset X + ## ## Using second argument to randperm implemented in dev version centroids = X(randperm (rows (X), K), :); -end - +endfunction