harthur/clusterfck — pull request #5 by primaryobjects (2014-04-08 16:24:12+00:00)
Title: Added classify method.

Added classify method: returns the index of a cluster for a new data point.
Usage:
var clusters = clusterfck.kmeans(colors, 3);
var clusterIndex = clusterfck.kmeans.classify([0, 0, 225]);

Output:
1