Class Cluster<T extends Clusterable<T>>

    • Constructor Detail

      • Cluster

        public Cluster​(T center)
        Build a cluster centered at a specified point.
        Parameters:
        center - the point which is to be the center of this cluster
    • Method Detail

      • addPoint

        public void addPoint​(T point)
        Add a point to this cluster.
        Parameters:
        point - point to add
      • getPoints

        public List<T> getPoints()
        Get the points contained in the cluster.
        Returns:
        points contained in the cluster
      • getCenter

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