def kulsinski(u, v):
 u = _validate_vector(u)
 v = _validate_vector(v)
 n = float(len(u))
 (nff, nft, ntf, ntt) = _nbool_correspond_all(u, v)
 return ((((ntf + nft) - ntt) + n) / ((ntf + nft) + n))

def kulsinski ( u , v ) : u = _validate_vector ( u ) v = _validate_vector ( v ) n = float ( len ( u ) ) ( nff , nft , ntf , ntt ) = _nbool_correspond_all ( u , v ) return ( ( ( ( ntf + nft ) - ntt ) + n ) / ( ( ntf + nft ) + n ) )
computes the kulsinski dissimilarity between two boolean 1-d arrays .