Class CentroidCluster<T extends Clusterable>

  • Type Parameters:
    T - the type of points that can be clustered
    All Implemented Interfaces:
    java.io.Serializable

    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
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Clusterable center
      Center of the cluster.
      private static long serialVersionUID
      Serializable version identifier.
    • Constructor Summary

      Constructors 
      Constructor Description
      CentroidCluster​(Clusterable center)
      Build a cluster centered at a specified point.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Clusterable getCenter()
      Get the point chosen to be the center of this cluster.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serializable version identifier.
        See Also:
        Constant Field Values
      • center

        private final Clusterable center
        Center of the cluster.
    • 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
    • Method Detail

      • getCenter

        public Clusterable getCenter()
        Get the point chosen to be the center of this cluster.
        Returns:
        chosen cluster center