C
- Type of clusters representedT
- Type of items contained by the clusters
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
@Beta @PublicAPI public interface HierarchicClustering<T,C extends HierarchicCluster<T>>
Instances of this interface represent unbalanced multifurcating trees.
Modifier and Type | Interface and Description |
---|---|
static class |
HierarchicClustering.Alignment
Level interpretation.
|
Modifier and Type | Method and Description |
---|---|
Optional<C> |
clusterOf(T item)
Identify the lowest level cluster containing the given item.
|
LevelAssigner<T,C> |
getPreferredAssigner()
Preferred assigner.
|
int |
maxHeight()
Maximal height of the clustering.
|
HierarchicClustering.Alignment |
preferredAlignment()
Preferred alignment of the represented clustering.
|
List<C> |
roots()
Highest level cluster(s).
|
LevelAssigner<T,C> |
unitPathAssigner()
Assigner which consider parent-child edges as unit length.
|
List<C> roots()
Optional<C> clusterOf(T item)
item
- Item to look up.HierarchicClustering.Alignment preferredAlignment()
LevelAssigner<T,C> unitPathAssigner()
LevelAssigner<T,C> getPreferredAssigner()
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.
int maxHeight()
HierarchicCluster.height()
of roots()