# scipy.cluster.hierarchy.weighted¶

scipy.cluster.hierarchy.weighted(y)[source]

Perform weighted/WPGMA linkage on the condensed distance matrix.

See linkage for more information on the return structure and algorithm.

Parameters: y : ndarray The upper triangular of the distance matrix. The result of pdist is returned in this form. Z : ndarray A linkage matrix containing the hierarchical clustering. See linkage for more information on its structure.

linkage
scipy.spatial.distance.pdist