Trees | Index | Help |
---|
Package Bio :: Package GA :: Package Crossover :: Module GeneralPoint :: Class GeneralPointCrossover |
|
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 | |
---|---|
Initialize to do crossovers at the specified probability. | |
Potentially do a crossover between the two organisms. |
Method Details |
---|
__init__(self,
points,
crossover_prob=0.10000000000000001)
Initialize to do crossovers at the specified probability.
|
do_crossover(self, org_1, org_2)Potentially do a crossover between the two organisms. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Jul 16 15:49:03 2005 | http://epydoc.sf.net |