public interface IDBasedClusterBuilderSpec
IDBasedHierarchicClusterBuidler
.Modifier and Type | Method and Description |
---|---|
IDBasedClusterBuilderSpec |
addChildCluster(int childClusterId)
Add child cluster.
|
IDBasedClusterBuilderSpec |
addImmediateLeaf(int leafId)
Add a leaf to this cluster.
|
IDBasedClusterBuilderSpec |
addImmediateLeafWithLevel(int leafId,
double level)
Add a leaf to this cluster.
|
IDBasedClusterBuilderSpec |
addImmediateLeaves(Integer... leafIds)
Add multiple leaves to the represented cluster.
|
IDBasedHierarchicClustering |
build()
Build represented hierarchy.
|
IDBasedClusterBuilderSpec |
newChildCluster()
Add a child cluster.
|
IDBasedClusterBuilderSpec |
newRootCluster()
Add a new root cluster.
|
IDBasedClusterBuilderSpec |
newSiblingCluster()
Add a child cluster to the same parent.
|
IDBasedClusterBuilderSpec |
parent()
Refers to the parent cluster if present.
|
IDBasedClusterBuilderSpec |
setLevel(double level)
Set level.
|
IDBasedClusterBuilderSpec |
setRepresentant(int memberId)
Set representant.
|
IDBasedClusterBuilderSpec addImmediateLeaf(int leafId)
IDBasedHierarchicClusterBuidler.addStructureToCluster(int, int)
.leafId
- Leaf IDthis
instanceIDBasedClusterBuilderSpec addImmediateLeafWithLevel(int leafId, double level)
IDBasedHierarchicClusterBuidler.addStructureToCluster(int, int)
and
IDBasedHierarchicClusterBuidler.setLeafPreferredLevel(int, double)
.leafId
- Leaf IDlevel
- Leaf levelthis
instanceIDBasedClusterBuilderSpec addImmediateLeaves(Integer... leafIds)
IDBasedHierarchicClusterBuidler.addStructureToCluster(int, int)
.leafIds
- IDs of the leavesthis
instanceIDBasedClusterBuilderSpec setRepresentant(int memberId)
IDBasedHierarchicClusterBuidler.setClusterRepresentant(int, int)
.memberId
- Representant member IDthis
instanceIDBasedClusterBuilderSpec setLevel(double level)
IDBasedHierarchicClusterBuidler.setClusterPreferredLevel(int, double)
.level
- Cluster levelthis
instanceIDBasedClusterBuilderSpec addChildCluster(int childClusterId)
IDBasedHierarchicClusterBuidler.addChildCluster(int, int)
.childClusterId
- Child cluster IDIDBasedClusterBuilderSpec newChildCluster()
IDBasedClusterBuilderSpec newSiblingCluster()
IllegalStateException
- when the representant cluster has no parentIDBasedClusterBuilderSpec parent()
IllegalStateException
- when no parent cluster is setIDBasedClusterBuilderSpec newRootCluster()
IDBasedHierarchicClusterBuidler.newCluster()
.IDBasedHierarchicClustering build()
IDBasedHierarchicClusterBuidler.build()