HSGEP-0.1.0: Gene Expression Programming evolutionary algorithm in HaskellSource codeContentsIndex
GEP.GeneOperations
Description

Operations on the chromosomes of individuals. The following assumptions are made.

  • Symbols are numbered 1 through n for a chromosome of length n.
  • Genes are numbered 0 through m-1 for a chromosome with m genes.

The functions provided in this module are purely functional. See GEP.MonadicGeneOperations for code that invokes these from within the GEP.Rmonad monad.

Synopsis
crossover1pt :: ([Symbol], [Symbol]) -> Int -> ([Symbol], [Symbol])
crossover2pt :: ([Symbol], [Symbol]) -> Int -> Int -> ([Symbol], [Symbol])
crossoverGene :: ([Symbol], [Symbol]) -> Int -> Int -> ([Symbol], [Symbol])
transposeGene :: [Symbol] -> Genome -> Int -> [Symbol]
transposeIS :: [Symbol] -> Genome -> Int -> Int -> Int -> Int -> [Symbol]
transposeRIS :: [Symbol] -> Genome -> Int -> Int -> Int -> [Symbol]
Documentation
crossover1ptSource
:: ([Symbol], [Symbol])Pair of individuals before crossover
-> IntCrossover point
-> ([Symbol], [Symbol])Pair of individuals after crossover
One-point crossover
crossover2ptSource
:: ([Symbol], [Symbol])Pair of individuals before crossover
-> IntCrossover point 1
-> IntCrossover point 2
-> ([Symbol], [Symbol])Pair of individuals after crossover
Two-point crossover
crossoverGeneSource
:: ([Symbol], [Symbol])Pair of individuals before crossover
-> IntGene number for crossover
-> IntGene length in symbols
-> ([Symbol], [Symbol])Pair of individuals after crossover
Gene crossover
transposeGeneSource
:: [Symbol]Chromosome
-> GenomeGenome
-> IntGene number
-> [Symbol]Resulting chromosome
Gene transposition.
transposeISSource
:: [Symbol]Chromosome
-> GenomeGenome
-> IntGene number
-> IntPosition to take from within a gene
-> IntLength to take
-> IntPosition to put within a gene
-> [Symbol]Resulting chromosome
Insertion sequence transposition.
transposeRISSource
:: [Symbol]Sequence to perform RIS transposition on
-> GenomeGenome information
-> IntGene to perform RIS transposition within
-> IntPosition within gene to start search for RIS for transposition
-> IntLength of RIS
-> [Symbol]Sequence after RIS transposition performed
Root insertion sequence transposition.
Produced by Haddock version 2.6.1