SokalSneathDissimilarity
Snokal-Sneath coefficient (WMA)
SokalSneathDissimilarity
[u, v]
- returns the Sokal-Sneath dissimilarity between the two Boolean 1-D lists u and v, which is defined as $R / (c_{tt} + R)$ where n is $len(u)$, $c_{ij}$ is the number of occurrences of $u[k]=i$, $v[k]=j$ for $k < n$, and $R = 2 (c_{tf} + c_{ft})$.
SokalSneathDissimilarity[{1, 0, 1, 1, 0, 1, 1}, {0, 1, 1, 0, 0, 0, 1}]