{ } Raw JSON

bundles / scipy 1.18.0 / scipy / cluster / hierarchy / _hierarchy_impl / ClusterNode / get_count

function

scipy.cluster.hierarchy._hierarchy_impl:ClusterNode.get_count

source: /scipy/cluster/hierarchy/_hierarchy_impl.py:1063

Signature

def get_count(self)

Summary

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_count : int

The number of leaf nodes below the target node.

Aliases

  • scipy.cluster.hierarchy.ClusterNode.get_count