T - The type of data to cluster.public class Cluster<T extends CentroidFactory<? super T>>
extends java.lang.Object
| Constructor and Description |
|---|
Cluster()
Create an empty cluster.
|
Cluster(T d)
Create a cluster with one initial data point.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T e)
Add a element to the cluster.
|
Centroid<? super T> |
centroid() |
java.util.List<T> |
getContents() |
void |
remove(int i)
Remove the specified index from the cluster.
|
public Cluster()
public Cluster(T d)
d - The initial data point.public java.util.List<T> getContents()
public void add(T e)
e - The element to add.public void remove(int i)
i - The index to remove.