From 1ee4c38c0faeecf6e8806245d09e75273bb2d7e2 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Tue, 29 Dec 2020 16:32:46 +0200 Subject: [PATCH] Update kMeans.md --- snippets/kMeans.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/kMeans.md b/snippets/kMeans.md index 3d622009a..3363815e8 100644 --- a/snippets/kMeans.md +++ b/snippets/kMeans.md @@ -3,7 +3,7 @@ title: kMeans tags: algorithm,array,advanced --- -Groups the given data into `k` clusters using the k-means clustering algorithm. +Groups the given data into `k` clusters, using the [k-means clustering](https://en.wikipedia.org/wiki/K-means_clustering) algorithm. - Use `Array.from()` and `Array.prototype.slice()` to initialize appropriate variables for the cluster `centroids`, `distances` and `classes`. - Use a `while` loop to repeat the assignment and update steps as long as there are changes in the previous iteration, as indicated by `itr`.