hamming_bitwise | R Documentation |
Takes in a binary matrix \mathbf{X}
, whose transpose \mathbf{X}^T
has N
rows, and computes a vector recording all
{N \choose 2}
pairwise Hamming distances of \mathbf{X}^T
,
ordered lexicographically.
hamming_bitwise(X)
X |
binary matrix (IntegerMatrix class ) |
vector of Hamming distances (NumericVector class)
# t(X) = [[1,0], [0,1], [1,1]] --> output = [2,1,1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.