View source: R/evaluation_functions.R
hamming.distance | R Documentation |
f both x and y are vectors, hamming.distance returns the Hamming distance (number of different elements) between this two vectors. If x is a matrix, the Hamming distances between the rows of x are computed and y is ignored.
hamming.distance(x, y = NULL)
x |
a vector or matrix. |
y |
an optional vector. |
distance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.