Population diversity is calculated by the home-made metric of average distance to centroid genotype within each generation, which yields the same results as a pairwise Hamming distance