Class HDBSCANHierarchyExtraction.TempCluster
- java.lang.Object
-
- elki.clustering.hierarchical.extraction.HDBSCANHierarchyExtraction.TempCluster
-
- Enclosing class:
- HDBSCANHierarchyExtraction
private static class HDBSCANHierarchyExtraction.TempCluster extends java.lang.ObjectTemporary cluster.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleaggregateMass aggregate.protected java.util.Collection<HDBSCANHierarchyExtraction.TempCluster>children(Finished) child clustersprotected intchildrenTotalNumber of objects in children.protected doubledistCurrent height.protected doubledminMinimum height (densest object).protected ModifiableDBIDsmembersNew ids, not yet in child clusters.protected intseqMerge id of the cluster for prototype identification.
-
Constructor Summary
Constructors Constructor Description TempCluster(int seq, double dist, HDBSCANHierarchyExtraction.TempCluster a, HDBSCANHierarchyExtraction.TempCluster b)Cluster containing two existing clusters.TempCluster(int seq, double dist, DBIDRef a)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleexcessOfMass()Excess of mass measure.HDBSCANHierarchyExtraction.TempClustergrow(int seq, double dist, HDBSCANHierarchyExtraction.TempCluster other)Join the contents of another cluster.HDBSCANHierarchyExtraction.TempClustergrow(int seq, double dist, DBIDRef id)Join the contents of another cluster.booleanisSpurious(int minClSize)Test if a cluster is spurious.HDBSCANHierarchyExtraction.TempClusterresetAggregate()Reset the aggregate (for spurious clusters).inttotalElements()Total number of elements in this subtree.doubletotalStability()Excess of mass measure.
-
-
-
Field Detail
-
seq
protected int seq
Merge id of the cluster for prototype identification.
-
members
protected ModifiableDBIDs members
New ids, not yet in child clusters.
-
dist
protected double dist
Current height.
-
dmin
protected double dmin
Minimum height (densest object).
-
aggregate
protected double aggregate
Mass aggregate.
-
childrenTotal
protected int childrenTotal
Number of objects in children.
-
children
protected java.util.Collection<HDBSCANHierarchyExtraction.TempCluster> children
(Finished) child clusters
-
-
Constructor Detail
-
TempCluster
public TempCluster(int seq, double dist, DBIDRef a)Constructor.- Parameters:
seq- Cluster generation sequencedist- Distancea- Object reference
-
TempCluster
public TempCluster(int seq, double dist, HDBSCANHierarchyExtraction.TempCluster a, HDBSCANHierarchyExtraction.TempCluster b)Cluster containing two existing clusters.- Parameters:
seq- Cluster generation sequencedist- Distancea- First clusterb- Second cluster
-
-
Method Detail
-
grow
public HDBSCANHierarchyExtraction.TempCluster grow(int seq, double dist, HDBSCANHierarchyExtraction.TempCluster other)
Join the contents of another cluster.- Parameters:
seq- Cluster generation sequencedist- Join distanceother- Other cluster (may benull)- Returns:
this
-
grow
public HDBSCANHierarchyExtraction.TempCluster grow(int seq, double dist, DBIDRef id)
Join the contents of another cluster.- Parameters:
seq- Cluster generation sequencedist- Join distanceid- Cluster lead, for 1-element clusters.- Returns:
this
-
resetAggregate
public HDBSCANHierarchyExtraction.TempCluster resetAggregate()
Reset the aggregate (for spurious clusters).- Returns:
this
-
totalElements
public int totalElements()
Total number of elements in this subtree.- Returns:
- Total
-
excessOfMass
public double excessOfMass()
Excess of mass measure.- Returns:
- Excess of mass
-
totalStability
public double totalStability()
Excess of mass measure.- Returns:
- Excess of mass
-
isSpurious
public boolean isSpurious(int minClSize)
Test if a cluster is spurious.- Parameters:
minClSize- Minimum cluster size- Returns:
trueif spurious
-
-