Class GeneralizedOPTICS.Instance<R>

  • Type Parameters:
    R - the type of results in the cluster order
    All Implemented Interfaces:
    java.util.Comparator<DBIDRef>
    Direct Known Subclasses:
    DiSH.Instance, HiCO.Instance, HiSC.Instance
    Enclosing interface:
    GeneralizedOPTICS

    public abstract static class GeneralizedOPTICS.Instance<R>
    extends java.lang.Object
    implements java.util.Comparator<DBIDRef>
    Instance for processing a single data set.
    Author:
    Erich Schubert
    • Constructor Detail

      • Instance

        public Instance​(DBIDs ids)
        Constructor for a single data set.
        Parameters:
        ids - IDs to process
    • Method Detail

      • compare

        public int compare​(DBIDRef o1,
                           DBIDRef o2)
        Specified by:
        compare in interface java.util.Comparator<R>
      • run

        public R run()
        Process the data set.
        Returns:
        Cluster order result.
      • initialDBID

        protected abstract void initialDBID​(DBIDRef id)
        Initialize for a new DBID.
        Parameters:
        id - Current object ID
      • expandDBID

        protected abstract void expandDBID​(DBIDRef id)
        Add the current DBID to the cluster order, and expand its neighbors if minPts and similar conditions are satisfied.
        Parameters:
        id - Current object ID
      • buildResult

        protected abstract R buildResult()
        Build the final result.
        Returns:
        Result
      • getLogger

        protected abstract Logging getLogger()
        Get the class logger.
        Returns:
        Class logger