|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.util.kmeans.KMeansUtil<K>
K - The type to cluster.public class KMeansUtil<K extends CentroidFactory<? super K>>
Generic KMeans clustering object.
| Constructor Summary | |
|---|---|
KMeansUtil(int theK,
List<? extends K> theElements)
Construct the clusters. |
|
| Method Summary | |
|---|---|
Collection<K> |
get(int index)
Get a cluster by index. |
Cluster<K> |
getCluster(int i)
Get a cluster by index. |
void |
process()
Perform the cluster. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KMeansUtil(int theK,
List<? extends K> theElements)
theK - The number of clusters.theElements - The elements to cluster.| Method Detail |
|---|
public void process()
public Collection<K> get(int index)
index - The index to get.
public int size()
public Cluster<K> getCluster(int i)
i - The index to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||