Class OPTICSXi.ClusterHierarchyBuilder

  • Enclosing class:
    OPTICSXi

    private static class OPTICSXi.ClusterHierarchyBuilder
    extends java.lang.Object
    Class to build the hierarchical clustering result structure.
    Author:
    Erich Schubert
    • Constructor Detail

      • ClusterHierarchyBuilder

        public ClusterHierarchyBuilder​(DBIDs ids)
        Constructor.
        Parameters:
        ids - All object ids (arbitrary order)
    • Method Detail

      • addCluster

        private void addCluster​(DBIDArrayIter tmp,
                                int cstart,
                                int cend)
        Build a cluster object.
        Parameters:
        tmp - DBID array iterator
        cstart - Interval start
        cend - Interval end
      • build

        private Clustering<OPTICSModel> build​(ClusterOrder clusterOrder,
                                              DBIDArrayIter iter)
        Build the main clustering result.
        Parameters:
        clusterOrder - Cluster order
        iter - Array iterator for the cluster order
        Returns:
        Clustering