org.encog.ml.kmeans
public class KMeansClustering extends Object implements MLClustering
| Constructor and Description |
|---|
KMeansClustering(int theK,
MLDataSet theSet)
Construct the K-Means object.
|
| Modifier and Type | Method and Description |
|---|---|
MLCluster[] |
getClusters() |
void |
iteration()
Perform a single training iteration.
|
void |
iteration(int count)
The number of iterations to perform.
|
int |
numClusters() |
public KMeansClustering(int theK,
MLDataSet theSet)
theK - The number of clusters to use.theSet - The dataset to cluster.public final void iteration()
iteration in interface MLClusteringpublic final void iteration(int count)
iteration in interface MLClusteringcount - The count of iterations.public MLCluster[] getClusters()
getClusters in interface MLClusteringpublic int numClusters()
numClusters in interface MLClusteringCopyright © 2014. All Rights Reserved.