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.

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

Returns<br />

centroid<br />

[ndarray] A k by N array of centroids found at the last iteration of k-means.<br />

label<br />

[ndarray] label[i] is the code or index of the centroid the i’th observation is closest to.<br />

3.1.3 Vector Quantization / Kmeans<br />

Clustering algorithms are useful in information theory, target detection, communications, compression,<br />

and other areas. The vq module only supports vector quantization and the k-means algorithms. Development<br />

of self-organizing maps (SOM) and other approaches is underway.<br />

3.1.4 Hierarchical Clustering<br />

The hierarchy module provides functions for hierarchical and agglomerative clustering. Its features include<br />

generating hierarchical clusters from distance matrices, computing distance matrices from observation<br />

vectors, calculating statistics on clusters, cutting linkages to generate flat clusters, and visualizing<br />

clusters with dendrograms.<br />

3.1.5 Distance Computation<br />

The distance module provides functions for computing distances between pairs of vectors from a set of<br />

observation vectors.<br />

3.2 Constants (<strong>scipy</strong>.constants)<br />

Physical and mathematical constants and units.<br />

3.2.1 Mathematical constants<br />

pi Pi<br />

golden Golden ratio<br />

152 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!