Safe Haskell | None |
---|---|
Language | Haskell2010 |
Core MEP data structures
- type Chromosome a = Vector (Gene a Int)
- data Gene a i where
- type F a = (Char, a -> a -> a)
- type Population a = [Chromosome a]
- type Generation a = [Phenotype a]
- type Phenotype a = (Double, Chromosome a, Vector Int)
Documentation
type Chromosome a = Vector (Gene a Int) Source
A chromosome is a vector of genes
Either a terminal symbol or a three-address code (a function and two pointers)
type Population a = [Chromosome a] Source
List of chromosomes
type Generation a = [Phenotype a] Source
Evaluated population
type Phenotype a = (Double, Chromosome a, Vector Int) Source
Loss value, chromosome, and the best expression indices vector