Class CentroidCluster<T extends Clusterable>
- java.lang.Object
-
- org.apache.commons.math4.legacy.ml.clustering.Cluster<T>
-
- org.apache.commons.math4.legacy.ml.clustering.CentroidCluster<T>
-
- Type Parameters:
T
- the type of points that can be clustered
public class CentroidCluster<T extends Clusterable> extends Cluster<T>
A Cluster used by centroid-based clustering algorithms.Defines additionally a cluster center which may not necessarily be a member of the original data set.
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description CentroidCluster(Clusterable center)
Build a cluster centered at a specified point.
-
-
-
Constructor Detail
-
CentroidCluster
public CentroidCluster(Clusterable center)
Build a cluster centered at a specified point.- Parameters:
center
- the point which is to be the center of this cluster
-
-