Class ConversionMutation
source code
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.
|
|
|
mutate(self,
organism)
Mutate the organisms genome. |
source code
|
|
__init__(self,
mutation_rate=0.001)
(Constructor)
| source code
|
Inititialize a mutator.
Arguments:
o mutation_rate -- The chance of a mutation happening at any position
in the genome.
|