Cluster
- class FOSC.cluster.Cluster(label, parent, birthLevel, numPoints)
Bases:
object- addChild(ch)
Adds constraint satisfaction for a cluster node
- addPointsToVirtualChildCluster(points)
Updates cluster node after emerging a virtual child cluster
- detachPoints(numPoints, level)
Removes the specified number of points from this cluster at the given edge level, which will update the stability of this cluster and potentially cause cluster death. If cluster death occurs, the number of constraints satisfied by the virtual child cluster will also be calculated.
- Parameters:
numPoints (int) – The number of points to remove from the cluster
level (float) – the dendrogram level removed from the dendrogram structure
- getBirthLevel()
- getChildren()
- getClassDistribution()
- getDeathLevel()
- getLabel()
- getObjects()
- getParent()
- getPropagatedDescendants()
- getPropagatedLowestChildDeathLevel()
- getPropagatedStability()
- getStability()
- propagate()
This cluster will propagate itself to its parent if its number of satisfied constraints is higher than the number of propagated constraints. Otherwise, this cluster propagates its propagated descendants. In the case of ties, stability is examined. Additionally, this cluster propagates the lowest death level of any of its descendants to its parent.
- releaseCluster()
- releaseVirtualChildCluster()
Sets the virtual child cluster to null, thereby saving memory. Only call this method after computing the number of constraints satisfied by the virtual child cluster.
- setObjects(objects)
- virtualChildClusterContaintsPoint(point)
Checks if a virtual child cluster contains a specific point