similarity: Similarity

Description Usage Details

View source: R/util.R

Description

Calculate the hamming distance-based similarity between two (sets of) coloring candidates.

Usage

1
similarity(x1, x2)

Details

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)


caranha/EvoGCP documentation built on May 3, 2021, 3:40 p.m.