Perform single point crossover between genomes at some defined rates.
This performs a single crossover between two genomes at some
defined frequency. The location of the crossover is chosen randomly
if the crossover meets the probability to occur.
Methods
|
|
__init__
do_crossover
|
|
__init__
|
__init__ (
self,
crossover_prob=.1,
uniform_prob=0.7,
)
Initialize to do uniform crossover at the specified probability and frequency.
|
|
do_crossover
|
do_crossover (
self,
org_1,
org_2,
)
Potentially do a crossover between the two organisms.
|
|