edu.umd.cloud9.example.clustering
Class KMeans

java.lang.Object
  extended by edu.umd.cloud9.example.clustering.KMeans

public class KMeans
extends Object


Constructor Summary
KMeans()
           
 
Method Summary
static void dumpClusters(List<Point>[] clusters)
           
static List<Point>[] run(Point[] points, int k)
          Performs a k-means on the point set to compute k clusters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMeans

public KMeans()
Method Detail

run

public static List<Point>[] run(Point[] points,
                                int k)
Performs a k-means on the point set to compute k clusters.

Parameters:
points - point set
k - number of clusters
Returns:
clusters

dumpClusters

public static void dumpClusters(List<Point>[] clusters)