@Beta @PublicAPI public interface IDBasedHierarchicClustering extends HierarchicClustering<Integer,IDBasedHierarchicCluster>
Please note that in order to help the implementation of higher level clustering representations represented clusters have associated, unique integer IDs.
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
HierarchicClustering.Alignment
Modifier and Type | Method and Description |
---|---|
int |
getClusterIndexOf(int leafId)
Cluster ID of a leaf.
|
int |
getMaxClusterID()
Maximal ClusterID present in this clustering.
|
int |
getMaxLeafID()
Maximal leaf ID referenced in this clustering.
|
int |
getParentClusterIndexOf(int clusterId)
Cluster ID of a cluster's parent.
|
IDBasedAssigner |
getPreferredAssigner()
Preferred assigner.
|
IDBasedAssigner |
unitPathAssigner()
Assigner which consider parent-child edges as unit length.
|
clusterOf, maxHeight, preferredAlignment, roots
int getMaxClusterID()
int getMaxLeafID()
int getClusterIndexOf(int leafId)
HierarchicClustering.clusterOf(java.lang.Object)
.leafId
- A leafint getParentClusterIndexOf(int clusterId)
clusterId
- A cluster IDIDBasedAssigner unitPathAssigner()
HierarchicClustering
unitPathAssigner
in interface HierarchicClustering<Integer,IDBasedHierarchicCluster>
IDBasedAssigner getPreferredAssigner()
HierarchicClustering
Some clustering algorithms may assign meaningful levels for clusters/leaves. If no such assignment s done the implementations should fall back the unit path assigner.
getPreferredAssigner
in interface HierarchicClustering<Integer,IDBasedHierarchicCluster>