15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SciPy Reference Guide, Release 0.8.dev<br />

maxdists(Z)<br />

Returns the maximum distance between any cluster for each non-singleton cluster.<br />

Arguments<br />

Returns<br />

• Z<br />

[ndarray] The hierarchical clustering encoded as a matrix. See linkage for more<br />

information.<br />

• MD : ndarray A (n-1) sized numpy array of doubles; MD[i] represents the maximum<br />

distance between any cluster (including singletons) below and including the node with<br />

index i. More specifically, MD[i] = Z[Q(i)-n, 2].max() where Q(i) is the set<br />

of all node indices below and including node i.<br />

maxinconsts(Z, R)<br />

Returns the maximum inconsistency coefficient for each non-singleton cluster and its descendents.<br />

Arguments<br />

Returns<br />

• Z<br />

• R<br />

[ndarray] The hierarchical clustering encoded as a matrix. See linkage for more<br />

information.<br />

[ndarray] The inconsistency matrix.<br />

• MI<br />

[ndarray] A monotonic (n-1)-sized numpy array of doubles.<br />

median(y)<br />

Performs median/WPGMC linkage. See linkage for more information on the return structure and algorithm.<br />

The following are common calling conventions:<br />

1.Z = median(y)<br />

Performs median/WPGMC linkage on the condensed distance matrix y. See linkage for more information<br />

on the return structure and algorithm.<br />

2.Z = median(X)<br />

Performs median/WPGMC linkage on the observation matrix X using Euclidean distance as the distance<br />

metric. See linkage for more information on the return structure and algorithm.<br />

Parameters<br />

Q<br />

[ndarray] A condensed or redundant distance matrix. A condensed distance matrix is a<br />

flat array containing the upper triangular of the distance matrix. This is the form that<br />

pdist returns. Alternatively, a collection of m observation vectors in n dimensions may<br />

be passed as a m by n array.<br />

144 Chapter 3. Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!