| Trees | Index | Help |
|---|
| Package Bio :: Package GA :: Package Crossover :: Module GeneralPoint :: Class InterleaveCrossover |
|
GeneralPointCrossover --+
|
InterleaveCrossover
Demonstration class for Interleaving crossover
Interleaving: AbCdEfG, aBcDeFg| Method Summary | |
|---|---|
__init__(self,
crossover_prob)
| |
Generalized Crossover Function:... | |
Generalized Location Generator: arguments: bound (int) - upper bound returns: [0]+x_0...x_n+[bound] where n=self._npoints-1 and 0 < x_0 < x_1 ... | |
| Inherited from GeneralPointCrossover | |
Potentially do a crossover between the two organisms. | |
| Method Details |
|---|
_crossover(self, x, no, locs)
Generalized Crossover Function:
arguments:
x (int) - genome number [0|1]
no (organism,organism)
- new organisms
locs (int list, int list)
- lists of locations,
[0, +n points+, bound]
for each genome (sync'd with x)
return type: sequence (to replace no[x])
|
_generate_locs(self, bound)
Generalized Location Generator:
arguments:
bound (int) - upper bound
returns: [0]+x_0...x_n+[bound]
where n=self._npoints-1
and 0 < x_0 < x_1 ... < bound
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jan 31 09:58:02 2007 | http://epydoc.sf.net |