Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1001 Bytes

File metadata and controls

36 lines (20 loc) · 1001 Bytes

BinaryDistance

BinaryDistance(u, v)

returns the binary distance between u and v. 0 if u and v are unequal. 1 if u and v are equal.

Examples

>> 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

Related terms

FindClusters, BrayCurtisDistance, ChessboardDistance, CanberraDistance, CosineDistance, EuclideanDistance, ManhattanDistance, SquaredEuclideanDistance

Implementation status

  • ✅ - full supported

Github