Package moa.cluster

Class Clustering

    • Constructor Detail

      • Clustering

        public Clustering()
      • Clustering

        public Clustering​(Cluster[] clusters)
      • Clustering

        public Clustering​(List<? extends Instance> points)
      • Clustering

        public Clustering​(ArrayList<DataPoint> points,
                          double overlapThreshold,
                          int initMinPoints)
    • Method Detail

      • classValues

        public static HashMap<Integer,​Integer> classValues​(List<? extends Instance> points)
        Parameters:
        points -
        Returns:
        an array with the min and max class label value
      • add

        public void add​(Cluster cluster)
        add a cluster to the clustering
      • remove

        public void remove​(int index)
        remove a cluster from the clustering
      • get

        public Cluster get​(int index)
        get a cluster from the clustering
      • getClusteringCopy

        public AutoExpandVector<Cluster> getClusteringCopy()
        Returns:
        A deepcopy of the Clustering as an AutoExpandVector
      • size

        public int size()
        Returns:
        the number of clusters
      • dimension

        public int dimension()
        Returns:
        the number of dimensions of this clustering
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int i)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        i - the number of characters to indent
      • getMaxInclusionProbability

        public double getMaxInclusionProbability​(Instance point)