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.