Perform point crossover between genomes at some defined rate.
This performs a crossover between two genomes at some defined
frequency. Length of genome is preserved, as the crossover point is the
same for either genome.
| Method Summary |
| |
__init__(self,
crossover_prob)
Initialize to do crossovers at the specified probability. |
| Inherited from TwoCrossover |
| |
_crossover(self,
x,
no,
locs)
Replacement crossover |
| |
_generate_locs(self,
bound)
Replacement generation |
| Inherited from GeneralPointCrossover |
| |
do_crossover(self,
org_1,
org_2)
Potentially do a crossover between the two organisms. |