Package elki.clustering.hierarchical
Class AbstractHDBSCAN<O>
- java.lang.Object
-
- elki.clustering.hierarchical.AbstractHDBSCAN<O>
-
- Type Parameters:
O- Input object type
- All Implemented Interfaces:
elki.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 elki.AlgorithmAbstract 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.
-
Constructor Summary
Constructors Constructor Description AbstractHDBSCAN(elki.distance.Distance<? super O> distance, int minPts)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected elki.database.datastore.WritableDoubleDataStorecomputeCoreDists(elki.database.ids.DBIDs ids, elki.database.query.knn.KNNSearcher<elki.database.ids.DBIDRef> knnQ, int minPts)Compute the core distances for all objects.protected ClusterMergeHistoryBuilderconvertToMergeList(elki.database.ids.ArrayDBIDs ids, elki.utilities.datastructures.heap.DoubleLongHeap heap, ClusterMergeHistoryBuilder builder)Convert spanning tree to a pointer representation.elki.data.type.TypeInformation[]getInputTypeRestriction()protected abstract elki.logging.LogginggetLogger()Get the (STATIC) logger for this class.
-
-
-
Field Detail
-
minPts
protected final int minPts
MinPts parameter.
-
distance
protected elki.distance.Distance<? super O> distance
Distance function used.
-
-
Constructor Detail
-
AbstractHDBSCAN
public AbstractHDBSCAN(elki.distance.Distance<? super O> distance, int minPts)
Constructor.- Parameters:
distance- Distance functionminPts- Minimum number of points for coredists
-
-
Method Detail
-
computeCoreDists
protected elki.database.datastore.WritableDoubleDataStore computeCoreDists(elki.database.ids.DBIDs ids, elki.database.query.knn.KNNSearcher<elki.database.ids.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(elki.database.ids.ArrayDBIDs ids, elki.utilities.datastructures.heap.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 elki.data.type.TypeInformation[] getInputTypeRestriction()
- Specified by:
getInputTypeRestrictionin interfaceelki.Algorithm
-
getLogger
protected abstract elki.logging.Logging getLogger()
Get the (STATIC) logger for this class.- Returns:
- the static logger
-
-