Documentation of 'org.apache.commons.math3.ml.clustering.Cluster' Java class
Cluster
org.apache.commons.math3.ml.clustering

Class Cluster<T extends Clusterable>

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


    public class Cluster<T extends Clusterable>
    extends java.lang.Object
    implements java.io.Serializable
    Cluster holding a set of Clusterable points.
    Since:
    3.2
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Cluster()
      Build a cluster centered at a specified point.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addPoint(T point)
      Add a point to this cluster.
      java.util.List<T> getPoints()
      Get the points contained in the cluster.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cluster

        public Cluster()
        Build a cluster centered at a specified point.
    • Method Detail

      • addPoint

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

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.