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

Class TwoCrossover

source code

           object --+    
                    |    
GeneralPointCrossover --+
                        |
                       TwoCrossover
Known Subclasses:

Helper class for Two Point crossovers.

Offers more efficient replacements to the GeneralPoint framework for single pivot crossovers

Instance Methods [hide private]
 
_generate_locs(self, bound)
Replacement generation.
source code
 
_crossover(self, x, no, locs)
Replacement crossover
source code

Inherited from GeneralPointCrossover: __init__, 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]

_generate_locs(self, bound)

source code 

Replacement generation.

See GeneralPoint._generate_locs documentation for details

Overrides: GeneralPointCrossover._generate_locs

_crossover(self, x, no, locs)

source code 

Replacement crossover

see GeneralPoint._crossover documentation for details

Overrides: GeneralPointCrossover._crossover