Class SimplifiedHierarchyExtraction.Instance

  • Enclosing class:
    SimplifiedHierarchyExtraction

    protected class SimplifiedHierarchyExtraction.Instance
    extends java.lang.Object
    Instance for a single data set.
    Author:
    Erich Schubert
    • Constructor Detail

      • Instance

        public Instance​(ClusterMergeHistory merges)
        Constructor.
        Parameters:
        merges - Hierarchical result
    • Method Detail

      • run

        public Clustering<DendrogramModel> run()
        Extract all clusters from the pi-lambda-representation.
        Returns:
        Hierarchical clustering
      • addSingleton

        private void addSingleton​(SimplifiedHierarchyExtraction.TempCluster clus,
                                  int id,
                                  DBIDRef it,
                                  double dist,
                                  boolean asCluster)
        Add a singleton object, as point or cluster.
        Parameters:
        clus - Current cluster.
        id - Object to add
        dist - Distance
        asCluster - Add as cluster (or only as id)
      • makeCluster

        protected Cluster<DendrogramModel> makeCluster​(int seq,
                                                       double depth,
                                                       DBIDs members)
        Make the cluster for the given object
        Parameters:
        seq - Cluster sequence number
        depth - Linkage depth
        members - Member objects
        Returns:
        Cluster