public class BaseClusteringAlgorithm extends java.lang.Object implements ClusteringAlgorithm, java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
BaseClusteringAlgorithm() |
protected |
BaseClusteringAlgorithm(ClusteringStrategy clusteringStrategy) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyClusteringStrategy() |
ClusterSet |
applyTo(java.util.List<Point> points) |
protected void |
classifyPoints() |
protected void |
initClusters()
Initialize the cluster centers at random
|
protected void |
optimize() |
protected int |
removeEmptyClusters(ClusterSetInfo clusterSetInfo) |
protected void |
removePoints() |
static BaseClusteringAlgorithm |
setup(ClusteringStrategy clusteringStrategy) |
protected BaseClusteringAlgorithm()
protected BaseClusteringAlgorithm(ClusteringStrategy clusteringStrategy)
public static BaseClusteringAlgorithm setup(ClusteringStrategy clusteringStrategy)
public ClusterSet applyTo(java.util.List<Point> points)
applyTo
in interface ClusteringAlgorithm
protected void classifyPoints()
protected void initClusters()
protected void applyClusteringStrategy()
protected void optimize()
protected int removeEmptyClusters(ClusterSetInfo clusterSetInfo)
protected void removePoints()