private static class HDBSCANHierarchyExtraction.TempCluster
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
aggregate
Mass aggregate.
|
protected java.util.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,
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 |
---|---|
double |
excessOfMass()
Excess of mass measure.
|
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 java.util.Collection<HDBSCANHierarchyExtraction.TempCluster> children
public 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 resetAggregate()
this
public int totalElements()
public double excessOfMass()
public double totalStability()
public boolean isSpurious(int minClSize)
minClSize
- Minimum cluster sizetrue
if spuriousCopyright © 2019 ELKI Development Team. License information.