creatur-2.0.12: Framework for artificial life experiments.

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellNone

ALife.Creatur.Genetics.Gene

Description

Definitions related to artificial genes.

Synopsis

Documentation

class PairedGene g whereSource

A paired instruction for building an agent.

Methods

express :: g -> g -> gSource

Given two possible forms of a PairedGene, express takes into account any dominance relationship, and returns a PairedGene representing the result.

decodeAndExpress :: (PairedGene g, Eq n) => Code g n -> ([n], [n]) -> (Maybe g, ([n], [n]))Source

Read the next pair of PairedGenes from a two sequences of nucleotides, and return the resulting PairedGene (after taking into account any dominance relationship) and the remaining (unread) portion of the two nucleotide strands.