scipy.cluster.hierarchy.weighted¶
-
scipy.cluster.hierarchy.weighted(y)[source]¶ Perform weighted/WPGMA linkage on the condensed distance matrix.
See
linkagefor more information on the return structure and algorithm.Parameters: - y : ndarray
The upper triangular of the distance matrix. The result of
pdistis returned in this form.
Returns: - Z : ndarray
A linkage matrix containing the hierarchical clustering. See
linkagefor more information on its structure.
See also
linkage- for advanced creation of hierarchical clusterings.
scipy.spatial.distance.pdist- pairwise distance metrics
