{ } Raw JSON

bundles / scipy 1.17.1 / scipy / cluster / _hierarchy / mst_single_linkage

cython_function_or_method

scipy.cluster._hierarchy:mst_single_linkage

Signature

def   mst_single_linkage ( dists n )

Summary

Perform hierarchy clustering using MST algorithm for single linkage.

Parameters

dists : ndarray

A condensed matrix stores the pairwise distances of the observations.

n : int

The number of observations.

Returns

Z : ndarray, shape (n - 1, 4)

Computed linkage matrix.

Aliases

  • scipy.cluster._hierarchy.mst_single_linkage