Class GeneralizedDBSCAN.Instance<T>

  • Enclosing class:
    GeneralizedDBSCAN

    public static class GeneralizedDBSCAN.Instance<T>
    extends java.lang.Object
    Instance for a particular data set.
    Author:
    Erich Schubert
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int expandCluster​(elki.database.ids.DBIDRef seed, int clusterid, elki.database.datastore.WritableIntegerDataStore clusterids, T neighbors, elki.database.ids.ArrayModifiableDBIDs activeSet, elki.logging.progress.FiniteProgress progress)
      Set-based expand cluster implementation.
      protected int processCorePoint​(elki.database.ids.DBIDRef seed, T newneighbors, int clusterid, elki.database.datastore.WritableIntegerDataStore clusterids, elki.database.ids.ArrayModifiableDBIDs activeSet)
      Process a single core point.
      Clustering<Model> run()
      Run the actual GDBSCAN algorithm.
      • Methods inherited from class java.lang.Object

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

      • Instance

        public Instance​(NeighborPredicate.Instance<T> npred,
                        CorePredicate.Instance<? super T> corepred,
                        boolean coremodel)
        Full Constructor
        Parameters:
        npred - Neighborhood predicate
        corepred - Core object predicate
        coremodel - Keep track of core points.
    • Method Detail

      • run

        public Clustering<Model> run()
        Run the actual GDBSCAN algorithm.
        Returns:
        Clustering result
      • expandCluster

        protected int expandCluster​(elki.database.ids.DBIDRef seed,
                                    int clusterid,
                                    elki.database.datastore.WritableIntegerDataStore clusterids,
                                    T neighbors,
                                    elki.database.ids.ArrayModifiableDBIDs activeSet,
                                    elki.logging.progress.FiniteProgress progress)
        Set-based expand cluster implementation.
        Parameters:
        clusterid - ID of the current cluster.
        clusterids - Current object to cluster mapping.
        neighbors - Neighbors acquired by initial getNeighbors call.
        activeSet - Set to manage active candidates.
        progress - Progress logging
        Returns:
        cluster size
      • processCorePoint

        protected int processCorePoint​(elki.database.ids.DBIDRef seed,
                                       T newneighbors,
                                       int clusterid,
                                       elki.database.datastore.WritableIntegerDataStore clusterids,
                                       elki.database.ids.ArrayModifiableDBIDs activeSet)
        Process a single core point.
        Parameters:
        seed - Point to process
        newneighbors - New neighbors
        clusterid - Cluster to add to
        clusterids - Cluster assignment storage.
        activeSet - Active set of cluster seeds
        Returns:
        Number of new points added to cluster