Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

k-means clustering implementation in Javascript? [closed]

I'm in need for a Javascript implementation of the k-means clustering algorithm. I only have 1-dimensional data and rarely more than 100 items, so performance is not an issue.

PS: I could only find one but it seems extremely unsteady, resulting in completely different clusters on virtually every call.

like image 879
stephanos Avatar asked Sep 10 '11 09:09

stephanos


1 Answers

k-means in Javascript:

http://code.google.com/p/hdict/source/browse/gae/files/kmeans.js

http://www.mymessedupmind.co.uk/index.php/javascript-k-mean-algorithm

Applet:

http://www.math.le.ac.uk/people/ag153/homepage/KmeansKmedoids/kmeans.jar

like image 109
cyborg Avatar answered Oct 20 '22 18:10

cyborg