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.
Methods
|
|
__init__
mutate
|
|
__init__
|
__init__ ( self, mutation_rate=0.001 )
Inititialize a mutator.
Arguments:
|
|
mutate
|
mutate ( self, organism )
Mutate the organisms genome.
|
|