Class SimplifiedHierarchyExtraction.TempCluster

  • Enclosing class:
    SimplifiedHierarchyExtraction

    private static class SimplifiedHierarchyExtraction.TempCluster
    extends java.lang.Object
    Temporary cluster.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection<Cluster<DendrogramModel>> children
      (Finished) child clusters
      protected double depth
      Current height.
      protected ModifiableDBIDs newids
      New ids, not yet in child clusters.
      protected int seq
      Merge id of the cluster for prototype identification.
    • Constructor Summary

      Constructors 
      Constructor Description
      TempCluster​(int seq, double depth)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(DBIDRef id)
      Add new objects to the cluster.
      void addChild​(Cluster<DendrogramModel> clu)
      Add a child cluster.
      void addDBIDs​(DBIDs ids)
      Add new objects to the cluster.
      boolean isNotSpurious​(int minClSize)
      Test if a cluster is spurious.
      • Methods inherited from class java.lang.Object

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

      • seq

        protected int seq
        Merge id of the cluster for prototype identification.
      • newids

        protected ModifiableDBIDs newids
        New ids, not yet in child clusters.
      • depth

        protected double depth
        Current height.
    • Constructor Detail

      • TempCluster

        public TempCluster​(int seq,
                           double depth)
        Constructor.
        Parameters:
        seq - Cluster generation sequence
        depth - Depth
    • Method Detail

      • add

        public void add​(DBIDRef id)
        Add new objects to the cluster.
        Parameters:
        id - ID to add.
      • addDBIDs

        public void addDBIDs​(DBIDs ids)
        Add new objects to the cluster.
        Parameters:
        ids - IDs to add.
      • addChild

        public void addChild​(Cluster<DendrogramModel> clu)
        Add a child cluster.
        Parameters:
        clu - Child cluster.
      • isNotSpurious

        public boolean isNotSpurious​(int minClSize)
        Test if a cluster is spurious.
        Parameters:
        minClSize - Minimum cluster size
        Returns:
        true if spurious