|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.kmeans.KMeansClustering
public class KMeansClustering
This class performs a basic K-Means clustering. This class can be used on either supervised or unsupervised data. For supervised data, the ideal values will be ignored. http://en.wikipedia.org/wiki/Kmeans
| Constructor Summary | |
|---|---|
KMeansClustering(int theK,
MLDataSet theSet)
Construct the K-Means object. |
|
| Method Summary | |
|---|---|
MLCluster[] |
getClusters()
|
void |
iteration()
Perform a single training iteration. |
void |
iteration(int count)
The number of iterations to perform. |
int |
numClusters()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KMeansClustering(int theK,
MLDataSet theSet)
k - The number of clusters to use.theSet - The dataset to cluster.| Method Detail |
|---|
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 MLClustering
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||