We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc1441 commit c639175Copy full SHA for c639175
pygenalgo/engines/auxiliary.py
@@ -2,7 +2,6 @@
2
from dataclasses import dataclass, field
3
from pygenalgo.genome.chromosome import Chromosome
4
5
-
6
# Public interface.
7
__all__ = ["hamming_distance", "average_hamming_distance",
8
"apply_corrections", "SubPopulation"]
@@ -61,7 +60,7 @@ def average_hamming_distance(population: list[Chromosome]) -> float:
61
60
total_diffs, total_genes = 0, 0
62
63
# Iterate through all the population.
64
- for i, item1 in enumerate(population[:-1]):
+ for i, item1 in enumerate(population):
65
66
# Get the size of the chromosome. It is
67
# assumed that all chromosomes have the
0 commit comments