Calculate the hamming distance-based similarity between two (sets of) coloring candidates.
1 | similarity(x1, x2)
|
Led d be the number of positions with different colors between coloring x1 and x2, then the similarity between x1 and x2 is given by:
1 - d / (length of x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.