scipy.spatial.distance.rogerstanimoto¶

scipy.spatial.distance.rogerstanimoto(u, v)[source]

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

where is the number of occurrences of and for and .

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

Previous topic

scipy.spatial.distance.minkowski

Next topic

scipy.spatial.distance.russellrao