scipy.spatial.distance.russellrao¶

scipy.spatial.distance.russellrao(u, v)

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

where is the number of occurrences of and for .

Parameters : u : ndarray An -dimensional vector. v : ndarray An -dimensional vector. d : double The Russell-Rao dissimilarity between vectors u and v.

Previous topic

scipy.spatial.distance.rogerstanimoto

Next topic

scipy.spatial.distance.seuclidean