org.encog.util.kmeans
K
- The type to cluster.public class KMeansUtil<K extends CentroidFactory<? super K>> extends Object
Constructor and Description |
---|
KMeansUtil(int theK,
List<? extends K> theElements)
Construct the clusters.
|
Modifier and Type | Method and Description |
---|---|
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() |
public void process()
public Collection<K> get(int index)
index
- The index to get.public int size()
Copyright © 2014. All Rights Reserved.