15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Returns<br />

Seealso<br />

• Z<br />

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

• linkage: for advanced creation of hierarchical clusterings.<br />

num_obs_linkage(Z)<br />

Returns the number of original observations of the linkage matrix passed.<br />

Arguments<br />

Returns<br />

• Z<br />

• n<br />

[ndarray] The linkage matrix on which to perform the operation.<br />

[int] The number of original observations in the linkage.<br />

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

set_link_color_palette(palette)<br />

Changes the list of matplotlib color codes to use when coloring links with the dendrogram color_threshold<br />

feature.<br />

Arguments<br />

• palette : A list of matplotlib color codes. The order of<br />

the color codes is the order in which the colors are cycled through when color thresholding in<br />

the dendrogram.<br />

single(y)<br />

Performs single/min/nearest linkage on the condensed distance matrix y. See linkage for more information<br />

on the return structure and algorithm.<br />

Parameters<br />

y<br />

Returns<br />

Z<br />

Seealso<br />

[ndarray] The upper triangular of the distance matrix. The result of pdist is returned in<br />

this form.<br />

[ndarray] The linkage matrix.<br />

• linkage: for advanced creation of hierarchical clusterings.<br />

to_mlab_linkage(Z)<br />

Converts a linkage matrix Z generated by the linkage function of this module to a MATLAB(TM) compatible<br />

3.1. Clustering package (<strong>scipy</strong>.cluster) 145

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

Saved successfully!

Ooh no, something went wrong!