scipy.spatial.distance.sokalsneath¶
- scipy.spatial.distance.sokalsneath(u, v)[source]¶
Computes the Sokal-Sneath dissimilarity between two boolean 1-D arrays.
The Sokal-Sneath dissimilarity between u and v,
where is the number of occurrences of and for and .
Parameters : u : (N,) array_like, bool
Input array.
v : (N,) array_like, bool
Input array.
Returns : sokalsneath : double
The Sokal-Sneath dissimilarity between vectors u and v.