scipy.cluster.hierarchy.num_obs_linkage

scipy.cluster.hierarchy.num_obs_linkage(Z)

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

Arguments :
  • Z : ndarray

    The linkage matrix on which to perform the operation.

Returns :
  • n : int

    The number of original observations in the linkage.

Previous topic

scipy.cluster.hierarchy.correspond

Next topic

K-means clustering and vector quantization (scipy.cluster.vq)

This Page