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

russellrao(u, v)<br />

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

n − cT T<br />

n<br />

where cij is the number of occurrences of u[k] = i and v[k] = j for k < n.<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 Russell-Rao dissimilarity between vectors u and v.<br />

seuclidean(u, v, V)<br />

Returns the standardized Euclidean distance between two n-vectors u and v. V is an m-dimensional vector of<br />

component variances. It is usually computed among a larger collection vectors.<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 standardized Euclidean distance between vectors u and v.<br />

sokalmichener(u, v)<br />

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

2R<br />

S + 2R<br />

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

S = cF F + cT 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 Sokal-Michener dissimilarity between vectors u and v.<br />

414 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!