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

Class ConversionMutation


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.
Method Summary
  __init__(self, mutation_rate)
Inititialize a mutator.
  mutate(self, organism)
Mutate the organisms genome.

Method Details

__init__(self, mutation_rate=0.001)
(Constructor)

Inititialize a mutator.

Arguments:

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

mutate(self, organism)

Mutate the organisms genome.

Generated by Epydoc 2.1 on Wed Jan 31 09:58:00 2007 http://epydoc.sf.net