Class KMeans

java.lang.Object
edu.cmu.tetrad.cluster.KMeans
All Implemented Interfaces:
ClusteringAlgorithm

public class KMeans extends Object implements ClusteringAlgorithm
Implements the "batch" version of the K Means clustering algorithm-- that is, in one sweep, assign each point to its nearest center, and then in a second sweep, reset each center to the mean of the cluster for that center, repeating until convergence.

Note that this algorithm is guaranteed to converge, since the total squared error is guaranteed to be reduced at each step.

Version:
$Id: $Id
Author:
josephramsey