protected class HDBSCANHierarchyExtraction.Instance
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected DoubleDataStore | 
coredist
Core distances (if available, may be  
null). | 
protected ArrayDBIDs | 
ids
Unordered IDs 
 | 
protected DoubleDataStore | 
lambda
Merge distance 
 | 
protected DBIDDataStore | 
pi
Parent pointer 
 | 
protected PointerHierarchyRepresentationResult | 
pointerresult
The hierarchical result to process. 
 | 
| Constructor and Description | 
|---|
Instance(PointerHierarchyRepresentationResult pointerresult)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
collectChildren(HDBSCANHierarchyExtraction.TempCluster temp,
               Clustering<DendrogramModel> clustering,
               HDBSCANHierarchyExtraction.TempCluster cur,
               Cluster<DendrogramModel> clus,
               boolean flatten)
Recursive flattening of clusters. 
 | 
private void | 
finalizeCluster(HDBSCANHierarchyExtraction.TempCluster temp,
               Clustering<DendrogramModel> clustering,
               Cluster<DendrogramModel> parent,
               boolean flatten)
Make the cluster for the given object 
 | 
private boolean | 
isSpurious(HDBSCANHierarchyExtraction.TempCluster clus,
          boolean isCore)
Spurious, also for non-materialized clusters. 
 | 
Clustering<DendrogramModel> | 
run()
Extract all clusters from the pi-lambda-representation. 
 | 
protected ArrayDBIDs ids
protected DBIDDataStore pi
protected DoubleDataStore lambda
protected DoubleDataStore coredist
null).protected PointerHierarchyRepresentationResult pointerresult
public Instance(PointerHierarchyRepresentationResult pointerresult)
pointerresult - Hierarchical resultpublic Clustering<DendrogramModel> run()
private boolean isSpurious(HDBSCANHierarchyExtraction.TempCluster clus, boolean isCore)
clus - Cluster, may be null for 1-element clusters.isCore - Core propertytrue if spurious.private void finalizeCluster(HDBSCANHierarchyExtraction.TempCluster temp, Clustering<DendrogramModel> clustering, Cluster<DendrogramModel> parent, boolean flatten)
temp - Current temporary clusterclustering - Parent clusteringparent - Parent cluster (for hierarchical output)flatten - Flag to flatten all clusters below.private void collectChildren(HDBSCANHierarchyExtraction.TempCluster temp, Clustering<DendrogramModel> clustering, HDBSCANHierarchyExtraction.TempCluster cur, Cluster<DendrogramModel> clus, boolean flatten)
clustering - Output clusteringcur - Current temporary clusterclus - Output clusterflatten - Flag to indicate everything below should be flattened.Copyright © 2019 ELKI Development Team. License information.