def rogerstanimoto(u, v):
 u = _validate_vector(u)
 v = _validate_vector(v)
 (nff, nft, ntf, ntt) = _nbool_correspond_all(u, v)
 return (float((2.0 * (ntf + nft))) / float(((ntt + nff) + (2.0 * (ntf + nft)))))

def rogerstanimoto ( u , v ) : u = _validate_vector ( u ) v = _validate_vector ( v ) ( nff , nft , ntf , ntt ) = _nbool_correspond_all ( u , v ) return ( float ( ( 2.0 * ( ntf + nft ) ) ) / float ( ( ( ntt + nff ) + ( 2.0 * ( ntf + nft ) ) ) ) )
computes the rogers-tanimoto dissimilarity between two boolean 1-d arrays .