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 MLClustering
public final void iteration(int count)
iteration
in interface MLClustering
count
- The count of iterations.public MLCluster[] getClusters()
getClusters
in interface MLClustering
public int numClusters()
numClusters
in interface MLClustering
Copyright © 2014. All Rights Reserved.