BinaryDistance

BinaryDistance[u,v]

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

Details

Examples

open allclose all

Basic Examples  (2)

Binary distance between numeric vectors:

Binary distance between two identical symbolic vectors:

Scope  (4)

Compute distance between arbitrary expressions:

Binary distance between numeric vectors of different length:

Binary distance between symbolic inputs:

Binary distance between two vectors:

Applications  (1)

Cluster data using BinaryDistance:

Properties & Relations  (3)

Approximate numbers may be considered identical:

BinaryDistance is effectively related to Equal:

Demonstrate the triangle inequality:

Possible Issues  (1)

The returned distance may not be completely simplified:

Simplify the result further:

Wolfram Research (2015), BinaryDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/BinaryDistance.html.

Text

Wolfram Research (2015), BinaryDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/BinaryDistance.html.

CMS

Wolfram Language. 2015. "BinaryDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BinaryDistance.html.

APA

Wolfram Language. (2015). BinaryDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BinaryDistance.html

BibTeX

@misc{reference.wolfram_2024_binarydistance, author="Wolfram Research", title="{BinaryDistance}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/BinaryDistance.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_binarydistance, organization={Wolfram Research}, title={BinaryDistance}, year={2015}, url={https://reference.wolfram.com/language/ref/BinaryDistance.html}, note=[Accessed: 21-November-2024 ]}