|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.kmeans.KMeans
public class KMeans
Generates clusters from a dataset using the K-Means algorithm.
Also contains the main method for running system in test mode.
| Constructor Summary | |
|---|---|
KMeans(DataSet dataset,
int numClusters)
Constructor. |
|
| Method Summary | |
|---|---|
ClusterSet |
clusters()
|
int |
getNumIterations()
Access the number of iterations that were needed to converge to these clusters. |
static void |
main(java.lang.String[] args)
A main method for using this in test mode. |
static void |
printUsage()
Describes the usage of this program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KMeans(DataSet dataset,
int numClusters)
dataset - The dataset to cluster.numCluster - The number of clusters to assume exist.| Method Detail |
|---|
public int getNumIterations()
public ClusterSet clusters()
public static void main(java.lang.String[] args)
public static void printUsage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||