@Reference(authors="R. J. G. B. Campello, D. Moulavi, and J. Sander", title="Density-Based Clustering Based on Hierarchical Density Estimates", booktitle="Pacific-Asia Conference on Advances in Knowledge Discovery and Data Mining, PAKDD", url="http://dx.doi.org/10.1007/978-3-642-37456-2_14") public class HDBSCANHierarchyExtraction extends Object implements ClusteringAlgorithm<Clustering<DendrogramModel>>
R. J. G. B. Campello, D. Moulavi, and J. Sander
Density-Based Clustering Based on Hierarchical Density Estimates
Pacific-Asia Conference on Advances in Knowledge Discovery and Data Mining,
PAKDD
Modifier and Type | Class and Description |
---|---|
static class |
HDBSCANHierarchyExtraction.Parameterizer
Parameterization class.
|
protected static class |
HDBSCANHierarchyExtraction.TempCluster
Temporary cluster.
|
Modifier and Type | Field and Description |
---|---|
private HierarchicalClusteringAlgorithm |
algorithm
Clustering algorithm to run to obtain the hierarchy.
|
private boolean |
hierarchical
Return a hierarchical result.
|
private static Logging |
LOG
Class logger.
|
private int |
minClSize
Minimum cluster size.
|
Constructor and Description |
---|
HDBSCANHierarchyExtraction(HierarchicalClusteringAlgorithm algorithm,
int minClSize,
boolean hierarchical)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Clustering<DendrogramModel> |
extractClusters(DBIDs ids,
DBIDDataStore pi,
DoubleDataStore lambda,
DoubleDataStore coredist)
Extract all clusters from the pi-lambda-representation.
|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
private boolean |
isSpurious(HDBSCANHierarchyExtraction.TempCluster clus,
boolean isCore)
Spurious, also for non-materialized clusters.
|
Clustering<DendrogramModel> |
run(Database database)
Runs the algorithm.
|
private static final Logging LOG
private int minClSize
private HierarchicalClusteringAlgorithm algorithm
private boolean hierarchical
public HDBSCANHierarchyExtraction(HierarchicalClusteringAlgorithm algorithm, int minClSize, boolean hierarchical)
algorithm
- Algorithm to runminClSize
- Minimum cluster sizehierarchical
- Produce a hierarchical resultpublic Clustering<DendrogramModel> run(Database database)
Algorithm
run
in interface Algorithm
run
in interface ClusteringAlgorithm<Clustering<DendrogramModel>>
database
- the database to run the algorithm onpublic Clustering<DendrogramModel> extractClusters(DBIDs ids, DBIDDataStore pi, DoubleDataStore lambda, DoubleDataStore coredist)
ids
- Object ids to processpi
- Pi storelambda
- Lambda storecoredist
- Core distancesprivate boolean isSpurious(HDBSCANHierarchyExtraction.TempCluster clus, boolean isCore)
clus
- Cluster, may be null
for 1-element clusters.isCore
- Core propertytrue
if spurious.public TypeInformation[] getInputTypeRestriction()
Algorithm
getInputTypeRestriction
in interface Algorithm
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.