BinaryDistance(u, v)
returns the binary distance between
u
andv
.0
ifu
andv
are unequal.1
ifu
andv
are equal.
>> BinaryDistance({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5})
1
>> BinaryDistance({1, 2, 3, 4, 5}, {1, 2, 3, 4, -5})
0
>> BinaryDistance({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5.0})
0
FindClusters, BrayCurtisDistance, ChessboardDistance, CanberraDistance, CosineDistance, EuclideanDistance, ManhattanDistance, SquaredEuclideanDistance
- ✅ - full supported