population-class: population - class definition

Description Arguments Details Value Examples

Description

For each geneartion (G_i) in the Game of Evolution There is a collection of 'organism' objects which make up a population which are competing with one another to survive to the next generation.

Arguments

organisms

an ordered List of organism-objects

fitness

an ordered Vector of numerical fitness-evaluation values for each organism in population. [NA]

Details

This is the class definition of a list of organisms and their associated fitness values

Value

population

Examples

1
2
3
# The population at g0 is glider and inverse_glider organisms
# Fitness and maternal line are initially undefined
gliders_G0 <- population( organisms = list( glider, glider_inv), fitness = c(NA,NA) , maternal_line = c(NA,NA) )

fransilvion/REvolution documentation built on Nov. 4, 2019, 12:57 p.m.