Package org.hipparchus.clustering
Class CentroidCluster<T extends Clusterable>
java.lang.Object
org.hipparchus.clustering.Cluster<T>
org.hipparchus.clustering.CentroidCluster<T>
- Type Parameters:
T
- the type of points that can be clustered
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
ConstructorDescriptionCentroidCluster
(Clusterable center) Build a cluster centered at a specified point. -
Method Summary
Modifier and TypeMethodDescriptionGet the point chosen to be the center of this cluster.
-
Constructor Details
-
CentroidCluster
Build a cluster centered at a specified point.- Parameters:
center
- the point which is to be the center of this cluster
-
-
Method Details
-
getCenter
Get the point chosen to be the center of this cluster.- Returns:
- chosen cluster center
-