Package Bio :: Package GA :: Package Crossover :: Module TwoPoint :: Class TwoPointCrossover
[hide private]
[frames] | no frames]

Class TwoPointCrossover

source code

                        object --+        
                                 |        
GeneralPoint.GeneralPointCrossover --+    
                                     |    
             GeneralPoint.TwoCrossover --+
                                         |
                                        TwoPointCrossover

Perform two point crossover between genomes at some defined rate.

This performs a crossover between two genomes at some defined frequency.
The location of the points of crossover are chosen randomly if the
crossover meets the probability to occur.

Instance Methods [hide private]
 
__init__(self, crossover_prob=0.1)
Initialize to do crossovers at the specified probability.
source code

Inherited from GeneralPoint.GeneralPointCrossover: do_crossover

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)
(Constructor)

source code 
Initialize to do crossovers at the specified probability.
        

Overrides: object.__init__