scipy.cluster.hierarchy.num_obs_linkage(Z)[source]

Return the number of original observations of the linkage matrix passed.

Parameters: Z : ndarray The linkage matrix on which to perform the operation. n : int The number of original observations in the linkage.

#### Previous topic

scipy.cluster.hierarchy.correspond