HSGEP-0.1.4: Gene Expression Programming evolutionary algorithm in Haskell

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

Documentation

randomSymbolSource

Arguments

:: [a]

List of symbols

-> GEPMonad a

Selected symbol

Select a random symbol from the provided list.

randomSymbolListSource

Arguments

:: [a]

List of symbols

-> Int

Number to select

-> GEPMonad [a]

List of selected symbols

Select a sequence of random symbols from the provided list.

newIndividualSource

Arguments

:: Genome

Genome for individual

-> Int

Number of genes to generate

-> GEPMonad Chromosome 

Generate a new individual given a genome specification.

newPopulationSource

Arguments

:: Genome

Genome of population

-> Int

Number of individuals to create

-> GEPMonad [Chromosome] 

Create a population of fresh random individuals given a genome |specification.