{ } Raw JSON

bundles / scipy latest / scipy / cluster / _hierarchy / prelist

cython_function_or_method

scipy.cluster._hierarchy:prelist

Signature

def   prelist ( Z members n )

Summary

Perform a pre-order traversal on the linkage tree and get a list of ids of the leaves.

Parameters

Z : ndarray

The linkage matrix.

members : ndarray

The array to store the result. Note that this input array will be modified in-place.

n : int

The number of observations.

Aliases

  • scipy.cluster._hierarchy.prelist