hmep-0.0.0: HMEP Multi Expression Programming – a genetic programming variant

Safe HaskellNone
LanguageHaskell2010

MEP.Types

Description

Provide the basic MEP data structures

Synopsis

Documentation

type Chromosome a = Vector (Gene a Int) Source #

A chromosome is a vector of genes

data Gene a i where Source #

Either a terminal symbol or a three-address code (a function and two pointers)

Constructors

C :: a -> Gene a i 
Var :: Int -> Gene a i 
Op :: F a -> i -> i -> Gene a i 

Instances

(Show a, Show i) => Show (Gene a i) Source # 

Methods

showsPrec :: Int -> Gene a i -> ShowS #

show :: Gene a i -> String #

showList :: [Gene a i] -> ShowS #

type F a = (Char, a -> a -> a) Source #

A function and its symbolic representation