Package Bio :: Package GA :: Package Crossover :: Module Uniform :: Class UniformCrossover
[hide private]
[frames] | no frames]

Class UniformCrossover

source code

object --+
         |
        UniformCrossover

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.

Instance Methods [hide private]
 
__init__(self, crossover_prob=0.1, uniform_prob=0.7)
Initialize to do uniform crossover at the specified probability and frequency.
source code
 
do_crossover(self, org_1, org_2)
Potentially do a crossover between the two organisms.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, crossover_prob=0.1, uniform_prob=0.7)
(Constructor)

source code 
Initialize to do uniform crossover at the specified probability and frequency.
Overrides: object.__init__