protected static class HDBSCANHierarchyExtraction.TempCluster extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
aggregate
Mass aggregate.
|
protected Collection<HDBSCANHierarchyExtraction.TempCluster> |
children
(Finished) child clusters
|
protected int |
childrenTotal
Number of objects in children.
|
protected double |
dist
Current height.
|
protected ModifiableDBIDs |
members
New ids, not yet in child clusters.
|
Constructor and Description |
---|
TempCluster(double dist)
Constructor.
|
TempCluster(double dist,
DBIDRef a)
Constructor.
|
TempCluster(double dist,
DBIDRef a,
DBIDRef b)
Constructor.
|
TempCluster(double dist,
HDBSCANHierarchyExtraction.TempCluster a,
HDBSCANHierarchyExtraction.TempCluster b)
Cluster containing two existing clusters.
|
Modifier and Type | Method and Description |
---|---|
private void |
collectChildren(Clustering<DendrogramModel> clustering,
HDBSCANHierarchyExtraction.TempCluster cur,
Cluster<DendrogramModel> clus,
boolean flatten,
boolean hierarchical)
Recursive flattening of clusters.
|
double |
excessOfMass()
Excess of mass measure.
|
private void |
finalizeCluster(Clustering<DendrogramModel> clustering,
Cluster<DendrogramModel> parent,
boolean flatten,
boolean hierarchical)
Make the cluster for the given object
|
HDBSCANHierarchyExtraction.TempCluster |
grow(double dist,
DBIDRef id)
Add new objects to the cluster.
|
HDBSCANHierarchyExtraction.TempCluster |
grow(double dist,
HDBSCANHierarchyExtraction.TempCluster other,
DBIDRef id)
Join the contents of another cluster.
|
boolean |
isSpurious(int minClSize)
Test if a cluster is spurious.
|
HDBSCANHierarchyExtraction.TempCluster |
resetAggregate()
Reset the aggregate (for spurious clusters).
|
int |
totalElements()
Total number of elements in this subtree.
|
double |
totalStability()
Excess of mass measure.
|
protected ModifiableDBIDs members
protected double dist
protected double aggregate
protected int childrenTotal
protected Collection<HDBSCANHierarchyExtraction.TempCluster> children
public TempCluster(double dist)
dist
- Distancepublic TempCluster(double dist, DBIDRef a)
dist
- Distancea
- Object referencepublic TempCluster(double dist, DBIDRef a, DBIDRef b)
dist
- Distancepublic TempCluster(double dist, HDBSCANHierarchyExtraction.TempCluster a, HDBSCANHierarchyExtraction.TempCluster b)
dist
- Distancea
- First clusterb
- Second clusterpublic HDBSCANHierarchyExtraction.TempCluster grow(double dist, HDBSCANHierarchyExtraction.TempCluster other, DBIDRef id)
dist
- Join distanceother
- Other cluster (may be null
)id
- Cluster lead, for 1-element clusters.this
public HDBSCANHierarchyExtraction.TempCluster grow(double dist, DBIDRef id)
dist
- Distanceid
- Object to addthis
public HDBSCANHierarchyExtraction.TempCluster resetAggregate()
this
public int totalElements()
public double excessOfMass()
public double totalStability()
public boolean isSpurious(int minClSize)
minClSize
- Minimum cluster sizetrue
if spuriousprivate void finalizeCluster(Clustering<DendrogramModel> clustering, Cluster<DendrogramModel> parent, boolean flatten, boolean hierarchical)
clustering
- Parent clusteringparent
- Parent cluster (for hierarchical output)flatten
- Flag to flatten all clusters below.hierarchical
- Hierarchical outpuprivate void collectChildren(Clustering<DendrogramModel> clustering, HDBSCANHierarchyExtraction.TempCluster cur, Cluster<DendrogramModel> clus, boolean flatten, boolean hierarchical)
clustering
- Output clusteringcur
- Current temporary clusterclus
- Output clusterflatten
- Flag to indicate everything below should be flattened.hierarchical
- Hierarchical outputCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.