Class DeLiCluTree

  • All Implemented Interfaces:
    elki.index.Index
    Direct Known Subclasses:
    DeLiCluTreeIndex

    public abstract class DeLiCluTree
    extends NonFlatRStarTree<DeLiCluNode,​DeLiCluEntry,​RTreeSettings>
    DeLiCluTree is a spatial index structure based on an R-Tree. DeLiCluTree is designed for the DeLiClu algorithm, having in each node a boolean array which indicates whether the child nodes are already handled by the DeLiClu algorithm.
    Since:
    0.1
    Author:
    Elke Achtert
    • Field Detail

      • LOG

        private static final elki.logging.Logging LOG
        The logger for this class.
      • expanded

        private it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<it.unimi.dsi.fastutil.ints.IntSet> expanded
        Holds the ids of the expanded nodes.
    • Constructor Detail

      • DeLiCluTree

        public DeLiCluTree​(elki.persistent.PageFile<DeLiCluNode> pagefile,
                           RTreeSettings settings)
        Constructor.
        Parameters:
        pagefile - Page file
        settings - Settings
    • Method Detail

      • setExpanded

        public void setExpanded​(DeLiCluEntry entry1,
                                DeLiCluEntry entry2)
        Marks the nodes with the specified ids as expanded.
        Parameters:
        entry1 - the first node
        entry2 - the second node
      • getExpanded

        public it.unimi.dsi.fastutil.ints.IntSet getExpanded​(DeLiCluEntry entry)
        Returns the nodes which are already expanded with the specified node.
        Parameters:
        entry - the id of the node for which the expansions should be returned
        Returns:
        the nodes which are already expanded with the specified node
      • getExpanded

        public it.unimi.dsi.fastutil.ints.IntSet getExpanded​(DeLiCluNode entry)
        Returns the nodes which are already expanded with the specified node.
        Parameters:
        entry - the id of the node for which the expansions should be returned
        Returns:
        the nodes which are already expanded with the specified node
      • createNewLeafNode

        protected DeLiCluNode createNewLeafNode()
        Creates a new leaf node with the specified capacity.
        Specified by:
        createNewLeafNode in class elki.index.tree.IndexTree<DeLiCluNode,​DeLiCluEntry>
        Returns:
        a new leaf node
      • createNewDirectoryNode

        protected DeLiCluNode createNewDirectoryNode()
        Creates a new directory node with the specified capacity.
        Specified by:
        createNewDirectoryNode in class elki.index.tree.IndexTree<DeLiCluNode,​DeLiCluEntry>
        Returns:
        a new directory node
      • createRootEntry

        protected DeLiCluEntry createRootEntry()
        Creates an entry representing the root node.
        Specified by:
        createRootEntry in class elki.index.tree.IndexTree<DeLiCluNode,​DeLiCluEntry>
        Returns:
        an entry representing the root node
      • getLogger

        protected elki.logging.Logging getLogger()
        Specified by:
        getLogger in class elki.index.tree.IndexTree<DeLiCluNode,​DeLiCluEntry>