|
||||||||||
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)
theK
- The number of clusters to use.theSet
- The dataset to cluster.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |