Class AbstractHDBSCAN<O>

  • Type Parameters:
    O - Input object type
    All Implemented Interfaces:
    Algorithm
    Direct Known Subclasses:
    HDBSCANLinearMemory, SLINKHDBSCANLinearMemory

    @Reference(authors="R. J. G. B. Campello, D. Moulavi, J. Sander",
               title="Density-Based Clustering Based on Hierarchical Density Estimates",
               booktitle="Pacific-Asia Conf. Advances in Knowledge Discovery and Data Mining (PAKDD)",
               url="https://doi.org/10.1007/978-3-642-37456-2_14",
               bibkey="DBLP:conf/pakdd/CampelloMS13")
    public abstract class AbstractHDBSCAN<O>
    extends java.lang.Object
    implements Algorithm
    Abstract base class for HDBSCAN variations.

    Reference:

    R. J. G. B. Campello, D. Moulavi, J. Sander
    Density-Based Clustering Based on Hierarchical Density Estimates
    Pacific-Asia Conf. Advances in Knowledge Discovery and Data Mining (PAKDD)

    Since:
    0.7.0
    Author:
    Erich Schubert
    • Field Detail

      • minPts

        protected final int minPts
        MinPts parameter.
      • distance

        protected Distance<? super O> distance
        Distance function used.
    • Constructor Detail

      • AbstractHDBSCAN

        public AbstractHDBSCAN​(Distance<? super O> distance,
                               int minPts)
        Constructor.
        Parameters:
        distance - Distance function
        minPts - Minimum number of points for coredists
    • Method Detail

      • computeCoreDists

        protected WritableDoubleDataStore computeCoreDists​(DBIDs ids,
                                                           KNNSearcher<DBIDRef> knnQ,
                                                           int minPts)
        Compute the core distances for all objects.
        Parameters:
        ids - Objects
        knnQ - kNN query
        minPts - Minimum neighborhood size
        Returns:
        Data store with core distances
      • getInputTypeRestriction

        public TypeInformation[] getInputTypeRestriction()
        Description copied from interface: Algorithm
        Get the input type restriction used for negotiating the data query.
        Specified by:
        getInputTypeRestriction in interface Algorithm
        Returns:
        Type restriction
      • getLogger

        protected abstract Logging getLogger()
        Get the (STATIC) logger for this class.
        Returns:
        the static logger