bundles / scipy 1.17.1 / scipy / cluster / hierarchy / ClusterNode
class
scipy.cluster.hierarchy:ClusterNode
Signature
class ClusterNode ( id , left = None , right = None , dist = 0.0 , count = 1 ) Members
Summary
A tree node class for representing a cluster.
Extended Summary
Leaf nodes correspond to original observations, while non-leaf nodes correspond to non-singleton clusters.
The to_tree function converts a matrix returned by the linkage function into an easy-to-use tree representation.
All parameter names are also attributes.
Parameters
id: intThe node id.
left: ClusterNode instance, optionalThe left child tree node.
right: ClusterNode instance, optionalThe right child tree node.
dist: float, optionalDistance for this cluster in the linkage matrix.
count: int, optionalThe number of samples in this cluster.
See also
- to_tree
for converting a linkage matrix
Zinto a tree object.
Aliases
-
scipy.cluster.hierarchy.ClusterNode