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

Class SinglePositionMutation

source code

object --+

Perform a conversion mutation, but only at a single point in the genome.

This does not randomize the genome as much as ConversionMutation, since
only one change is allowed per genome at the specified mutation rate.

Instance Methods [hide private]
__init__(self, mutation_rate=0.001)
Initialize 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 
Initialize a mutator.


o mutation_rate - The chance of a mutation happening once in the

Overrides: object.__init__