Rutger Vos
and 1 contributors

NAME

Algorithm::Genetic::Diploid::Chromosome - one of a pair of homologous chromosomes

METHODS

new

Constructor takes named arguments. Creates a default list of genes and chromosome number.

genes

Sets and gets list of genes on the chromosome

number

Sets and gets chromosome number, i.e. in humans that would be 1..22, X, Y

recombine

Exchanges genes with homologous chromosome (the argument to this method).