Safe Haskell | None |
---|
Randomized functions for GEP applications. Attempting to isolate all code that needs to be run under the Rmonad here.
Author: mjsottile@computer.org
- randomSymbol :: [a] -> GEPMonad a
- randomSymbolList :: [a] -> Int -> GEPMonad [a]
- newIndividual :: Genome -> Int -> GEPMonad Chromosome
- newPopulation :: Genome -> Int -> GEPMonad [Chromosome]
- mutate :: Genome -> Rates -> Chromosome -> GEPMonad Chromosome
Documentation
:: [a] | List of symbols |
-> GEPMonad a | Selected symbol |
Select a random symbol from the provided list.
Select a sequence of random symbols from the provided list.
:: Genome | Genome for individual |
-> Int | Number of genes to generate |
-> GEPMonad Chromosome |
Generate a new individual given a genome specification.
:: Genome | Genome of population |
-> Int | Number of individuals to create |
-> GEPMonad [Chromosome] |
Create a population of fresh random individuals given a genome |specification.
mutate :: Genome -> Rates -> Chromosome -> GEPMonad ChromosomeSource