Table of Contents

Class: ConversionMutation Bio/GA/Mutation/Simple.py

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:

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

  mutate 
mutate ( self,  organism )

Mutate the organisms genome.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:10 2002 by HappyDoc version 2.0.1