get_count — SciPy v1.15.3 Manual (original) (raw)

scipy.cluster.hierarchy.ClusterNode.

ClusterNode.get_count()[source]#

The number of leaf nodes (original observations) belonging to the cluster node nd. If the target node is a leaf, 1 is returned.

Returns:

get_countint

The number of leaf nodes below the target node.