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

Class TwoPointCrossover

GeneralPointCrossover --+    
                        |    
             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.
Method Summary
  __init__(self, crossover_prob)
Initialize to do crossovers at the specified probability.
    Inherited from GeneralPointCrossover
  do_crossover(self, org_1, org_2)
Potentially do a crossover between the two organisms.

Method Details

__init__(self, crossover_prob=0.10000000000000001)
(Constructor)

Initialize to do crossovers at the specified probability.
Overrides:
Bio.GA.Crossover.GeneralPoint.GeneralPointCrossover.__init__

Generated by Epydoc 2.1 on Thu Jun 30 22:06:04 2005 http://epydoc.sf.net