### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »

# scipy.cluster.hierarchy.average

`scipy.cluster.hierarchy.``average`(y)

  Performs average/UPGMA linkage on the condensed distance matrix `y`. 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.
  Returns : | Z : ndarray A linkage matrix containing the hierarchical clustering. See the `linkage` function documentation for more information on its structure.
  Seealso : | linkage: for advanced creation of hierarchical clusterings.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »