This module contains wrappers around the purely functional gene operations in GEP.GeneOperations in order to string the random number generation state through via the GEP.Rmonad. These helper functions are responsible for sampling the random number generator to determine the parameters for applying the genetic operators.
The reasoning behind using a specialized Random monad instead of the system generator provided by IO is that this allows independent generators to be used should we support multiple threads of execution. Parallel random number generation requires distinct generators, not a shared one.
Author: mjsottile@computer.org
- isTransposer :: Genome -> SimParams -> Chromosome -> GEPMonad Chromosome
- risTransposer :: Genome -> SimParams -> Chromosome -> GEPMonad Chromosome
- geneTransposer :: Genome -> Chromosome -> GEPMonad Chromosome
- x1PHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)
- x2PHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)
- xGHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)
Documentation
isTransposer :: Genome -> SimParams -> Chromosome -> GEPMonad ChromosomeSource
IS Transposition helper
risTransposer :: Genome -> SimParams -> Chromosome -> GEPMonad ChromosomeSource
RIS Transposition helper
geneTransposer :: Genome -> Chromosome -> GEPMonad ChromosomeSource
Gene transposition helper
x1PHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)Source
One-point crossover helper. Takes a genome, a pair of individuals, and selects the crossover point before generating the new pair of resulting individuals after crossover.
x2PHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)Source
Two-point crossover helper. Takes a genome, a pair of individuals, and selects the crossover points before generating the new pair of resulting individuals after crossover.
xGHelper :: Genome -> (Chromosome, Chromosome) -> GEPMonad (Chromosome, Chromosome)Source
Gene crossover helper. Takes a genome, a pair of individuals, and selects the crossover gene before generating the new pair of individuals resulting after crossover.