1 """Perform two-point crossovers between the genomes of two organisms.
2
3 This module performs single-point crossover between two genomes.
4
5 SinglePointCrossover:
6 genome 1 -- A B C*D E F
7 genome 2 -- a b c*d e f
8
9 new genome 1 -- A B C d e f
10 new genome 2 -- a b c D E F
11
12 """
13
14 from GeneralPoint import TwoCrossover
15
17 """Perform point crossover between genomes at some defined rate.
18
19 This performs a crossover between two genomes at some defined
20 frequency. Length of genome is preserved, as the crossover
21 point is the same for either genome.
22 """
23 - def __init__(self, crossover_prob = .1):
24 """Initialize to do crossovers at the specified probability.
25 """
26 TwoCrossover.__init__(self, 1, crossover_prob)
27