Package com.chemaxon.clustering.common
Interface IDBasedHierarchicCluster
- All Superinterfaces:
Cluster<Integer>,HierarchicCluster<Integer>
A Hierarchic cluster over integers, preferably IDs; having associated integral ClusterID.
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
-
Method Summary
Methods inherited from interface com.chemaxon.clustering.common.Cluster
memberCount, members, representantMethods inherited from interface com.chemaxon.clustering.common.HierarchicCluster
depth, height, immediateDescendantsCount, leaves
-
Method Details
-
getClusterID
int getClusterID()Associated cluster ID, unique among a clustering.Please note that cluster ID is exposed in order to ease the implementation of efficient composition of higher level clustering representations. Cluster IDs associated for clusters retrieved from different clusterings can not be meaningfully compared.
- Returns:
- Associated cluster ID.
-
clusters
List<IDBasedHierarchicCluster> clusters()Description copied from interface:HierarchicClusterAccess further grouping of the represented elements.Note that a hierarchic cluster might represent structures without further divisions: it is valid to contain
Cluster.members()but not containHierarchicCluster.clusters().- Specified by:
clustersin interfaceHierarchicCluster<Integer>- Returns:
- List of child clusters. The returned list is empty when no child clusters contained.
-
parent
Optional<IDBasedHierarchicCluster> parent()Description copied from interface:HierarchicClusterGet parent for non roots.- Specified by:
parentin interfaceHierarchicCluster<Integer>- Returns:
- Perent cluster for non root clusters.
-