Package Bio :: Package GA :: Package Mutation :: Module Simple :: Class ConversionMutation
[hide private]
[frames] | no frames]

Class ConversionMutation

source code

object --+

Potentially mutate any item to another in the alphabet.

This just performs switching mutation -- changing one gene of a genome to any other potential gene, at some defined frequency. If the organism is determined to mutate, then the alphabet item it is equally likely to switch to any other letter in the alphabet.

Instance Methods [hide private]
__init__(self, mutation_rate=0.001)
Inititialize a mutator.
source code
mutate(self, organism)
Mutate the organisms genome.
source code

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]

__init__(self, mutation_rate=0.001)

source code 

Inititialize a mutator.


o mutation_rate -- The chance of a mutation happening at any position in the genome.

Overrides: object.__init__