This is documentation for an old release of SciPy (version 0.12.0). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.cluster.hierarchy.num_obs_linkage
-
scipy.cluster.hierarchy.num_obs_linkage(Z)[source]
Returns the number of original observations of the linkage matrix
passed.
Parameters : | Z : ndarray
The linkage matrix on which to perform the operation.
|
Returns : | n : int
The number of original observations in the linkage.
|