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

Class SinglePositionMutation


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

Method Details

__init__(self, mutation_rate=0.001)
(Constructor)

Initialize a mutator.

Arguments:

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

mutate(self, organism)

Mutate the organisms genome.

Generated by Epydoc 2.1 on Thu Mar 31 20:15:37 2005 http://epydoc.sf.net