Package Bio :: Package GA :: Package Crossover :: Module GeneralPoint :: Class GeneralPointCrossover
[show private | hide private]
[frames | no frames]

Class GeneralPointCrossover

Known Subclasses:
InterleaveCrossover, TwoCrossover

Perform n-point crossover between genomes at some defined rates.

Ideas on how to use this class:
    - Call it directly ( construct, do_crossover )
    - Use one of the provided subclasses
    - Inherit from it:
        * replace _generate_locs with a more domain 
          specific technique
        * replace _crossover with a more efficient 
          technique for your point-count

Method Summary
  __init__(self, points, crossover_prob)
Initialize to do crossovers at the specified probability.
  do_crossover(self, org_1, org_2)
Potentially do a crossover between the two organisms.

Method Details

__init__(self, points, crossover_prob=0.10000000000000001)
(Constructor)

Initialize to do crossovers at the specified probability.

do_crossover(self, org_1, org_2)

Potentially do a crossover between the two organisms.

Generated by Epydoc 2.1 on Mon Aug 27 16:43:47 2007 http://epydoc.sf.net