Class ParallelGeneralizedDBSCAN.Instance<T>

  • All Implemented Interfaces:
    Processor
    Enclosing class:
    ParallelGeneralizedDBSCAN

    public static class ParallelGeneralizedDBSCAN.Instance<T>
    extends java.lang.Object
    implements Processor
    Instance for a particular data set.
    Author:
    Erich Schubert
    • Field Detail

      • coremodel

        protected boolean coremodel
        Track which objects are "core" objects.
      • cores

        private Core[] cores
        Core objects (shared)
      • borders

        private Border[] borders
        Border objects (shared)
      • nextclus

        private int nextclus
        Next cluster number assigned.
      • database

        private Database database
        Database for cloning neighbor predicates.
    • Constructor Detail

      • Instance

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

      • run

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

        protected void processNeighbors​(DBIDRef id,
                                        T neighbors)
        Synchronize function to process the neighbors.
        Parameters:
        id - Current point
        neighbors - Neighbors