WLJS LogoWLJS Notebook

BinaryDistance

BinaryDistance[u, v] gives the binary distance between vectors u and v, equal to 0 if they are identical and 1 otherwise.

Examples

Compare identical vectors:

BinaryDistance[{1, 2, 3}, {1, 2, 3}]
(* 0 *)

Compare different vectors:

BinaryDistance[{1, 2, 3}, {1, 2, 4}]
(* 1 *)

Please visit the official Wolfram Language Reference for more details.

On this page