bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / cluster / hierarchy / _hierarchy / calculate_cluster_sizes
cython_function_or_method
scipy.cluster.hierarchy._hierarchy:calculate_cluster_sizes
Signature
def calculate_cluster_sizes(Z, cs, n)Summary
Calculate the size of each cluster. The result is the fourth column of the linkage matrix.
Parameters
Z: ndarrayThe linkage matrix. The fourth column can be empty.
cs: ndarrayThe array to store the sizes.
n: ndarrayThe number of observations.
Aliases
scipy.cluster.hierarchy._hierarchy.calculate_cluster_sizes