Package elki.clustering.hierarchical
Class AbstractHDBSCAN<O>
- java.lang.Object
-
- elki.clustering.hierarchical.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractHDBSCAN.HDBSCANAdapterClass for processing the HDBSCAN G_mpts graph.static classAbstractHDBSCAN.HeapMSTCollectorClass for collecting the minimum spanning tree edges into a heap.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Constructor Summary
Constructors Constructor Description AbstractHDBSCAN(Distance<? super O> distance, int minPts)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected WritableDoubleDataStorecomputeCoreDists(DBIDs ids, KNNSearcher<DBIDRef> knnQ, int minPts)Compute the core distances for all objects.protected ClusterMergeHistoryBuilderconvertToMergeList(ArrayDBIDs ids, DoubleLongHeap heap, ClusterMergeHistoryBuilder builder)Convert spanning tree to a pointer representation.TypeInformation[]getInputTypeRestriction()Get the input type restriction used for negotiating the data query.protected abstract LogginggetLogger()Get the (STATIC) logger for this class.
-
-
-
Method Detail
-
computeCoreDists
protected WritableDoubleDataStore computeCoreDists(DBIDs ids, KNNSearcher<DBIDRef> knnQ, int minPts)
Compute the core distances for all objects.- Parameters:
ids- ObjectsknnQ- kNN queryminPts- Minimum neighborhood size- Returns:
- Data store with core distances
-
convertToMergeList
protected ClusterMergeHistoryBuilder convertToMergeList(ArrayDBIDs ids, DoubleLongHeap heap, ClusterMergeHistoryBuilder builder)
Convert spanning tree to a pointer representation.Note: the heap must use the correct encoding of indexes.
- Parameters:
ids- IDs indexedheap- Heapbuilder- Hierarchy builder- Returns:
- builder, for method chaining
-
getInputTypeRestriction
public TypeInformation[] getInputTypeRestriction()
Description copied from interface:AlgorithmGet the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestrictionin interfaceAlgorithm- Returns:
- Type restriction
-
getLogger
protected abstract Logging getLogger()
Get the (STATIC) logger for this class.- Returns:
- the static logger
-
-