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 />

average(y)<br />

Performs average/UPGMA 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] A linkage matrix containing the hierarchical clustering. See the linkage function<br />

documentation for more information on its structure.<br />

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

centroid(y)<br />

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

The following are common calling conventions:<br />

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

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

on the return structure and algorithm.<br />

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

Performs centroid/UPGMC 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 />

Returns<br />

Z<br />

Seealso<br />

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

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

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

as a m by n array.<br />

[ndarray] A linkage matrix containing the hierarchical clustering. See the linkage function<br />

documentation for more information on its structure.<br />

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

complete(y)<br />

Performs complete complete/max/farthest point linkage on the condensed distance matrix y. See linkage for<br />

more information on the return structure and algorithm.<br />

132 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!