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

Randomized functions for GEP applications. Attempting to isolate all code that needs to be run under the Rmonad here.

Author: mjsottile@computer.org

Synopsis
randomSymbol :: [Symbol] -> GEPMonad Symbol
randomSymbolList :: [Symbol] -> Int -> GEPMonad [Symbol]
newIndividual :: Genome -> Int -> GEPMonad Individual
newPopulation :: Genome -> Int -> GEPMonad [Individual]
mutateSymbol :: Genome -> Rates -> Symbol -> Double -> Bool -> GEPMonad Symbol
mutate :: Genome -> Rates -> [Symbol] -> GEPMonad [Symbol]
Documentation
randomSymbolSource
:: [Symbol]List of symbols
-> GEPMonad SymbolSelected symbol
Select a random symbol from the provided list.
randomSymbolListSource
:: [Symbol]List of symbols
-> IntNumber to select
-> GEPMonad [Symbol]List of selected symbols
Select a sequence of random symbols from the provided list.
newIndividualSource
:: GenomeGenome for individual
-> IntNumber of genes to generate
-> GEPMonad Individual
Generate a new individual given a genome specification.
newPopulationSource
:: GenomeGenome of population
-> IntNumber of individuals to create
-> GEPMonad [Individual]
Create a population of fresh random individuals given a genome |specification.
mutateSymbol :: Genome -> Rates -> Symbol -> Double -> Bool -> GEPMonad SymbolSource
mutate :: Genome -> Rates -> [Symbol] -> GEPMonad [Symbol]Source
Produced by Haddock version 2.6.1