org.encog.util.kmeans
Class Cluster<T extends CentroidFactory<? super T>>
- java.lang.Object
-
- org.encog.util.kmeans.Cluster<T>
-
- Type Parameters:
T- The type of data to cluster.
public class Cluster<T extends CentroidFactory<? super T>> extends java.lang.ObjectA cluster.
-
-
Constructor Summary
Constructors Constructor and Description Cluster()Create an empty cluster.Cluster(T d)Create a cluster with one initial data point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(T e)Add a element to the cluster.Centroid<? super T>centroid()java.util.List<T>getContents()voidremove(int i)Remove the specified index from the cluster.
-
-
-
Constructor Detail
-
Cluster
public Cluster()
Create an empty cluster.
-
Cluster
public Cluster(T d)
Create a cluster with one initial data point.- Parameters:
d- The initial data point.
-
-
Method Detail
-
getContents
public java.util.List<T> getContents()
- Returns:
- The contents of this cluster.
-
add
public void add(T e)
Add a element to the cluster.- Parameters:
e- The element to add.
-
remove
public void remove(int i)
Remove the specified index from the cluster.- Parameters:
i- The index to remove.
-
-
DMelt 3.0 © DataMelt by jWork.ORG