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

checks<br />

[bool] If checks is set to False, no checks will be made for matrix symmetry nor<br />

zero diagonals. This is useful if it is known that X - X.T1 is small and diag(X) is<br />

close to zero. These values are ignored any way so they do not disrupt the squareform<br />

transformation.<br />

wminkowski(u, v, p, w)<br />

Computes the weighted Minkowski distance between two vectors u and v, defined as<br />

Parameters<br />

u<br />

v<br />

p<br />

w<br />

Returns<br />

d<br />

[ndarray] An n-dimensional vector.<br />

[ndarray] An n-dimensional vector.<br />

��<br />

(wi|ui − vi| p �1/p ) .<br />

[ndarray] The norm of the difference ||u − v|| p .<br />

[ndarray] The weight vector.<br />

[double] The Minkowski distance between vectors u and v.<br />

yule(u, v)<br />

Computes the Yule dissimilarity between two boolean n-vectors u and v, which is defined as<br />

R<br />

cT T + cF F + R<br />

2<br />

where cij is the number of occurrences of u[k] = i and v[k] = j for k < n and R = 2.0 ∗ (cT F + cF T ).<br />

Parameters<br />

u<br />

v<br />

Returns<br />

d<br />

[ndarray] An n-dimensional vector.<br />

[ndarray] An n-dimensional vector.<br />

[double] The Yule dissimilarity between vectors u and v.<br />

3.16.2 Spatial data structures and algorithms<br />

Nearest-neighbor queries:<br />

KDTree – class for efficient nearest-neighbor queries distance – module containing many different distance<br />

measures<br />

416 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!