Skip to content
Sujimichi edited this page Sep 12, 2010 · 3 revisions

This class is used in Individuals and is concered with genetic operations. Its function is to store the genetic material in an array of genes (dna) and preform actions on this genetic material. The basic class is simple containing only four methods: <table> <tr><td>new_random </td><td>creates a new @dna array</td><td><pre><code>dna = novel_genome(config)</code

inherit replaces @dna with outside genetic material, e.g from recombination
sequence simply returns the @dna array
has_mutated? returns true if a mutation has been applied to this genome

The functions which preform the actual work of the genome are provided by three modules; GeneInitializer, Mutator and Recombination.

Clone this wiki locally