evolve: Evolve a population for a number of generations

Description Usage Arguments Value Note See Also

Description

evolve subjects the given population to a number of rounds of evolution. During this process, the population first reproduces via reproduce, creating the next generation.

Usage

1
2
evolve(population, generations = 1, start = 1, population_size,
  mutation_rate, progress_bar = TRUE)

Arguments

population

A mutationtree population

generations

The number of generations to evolve (positive integer, default: 1)

start

Start generation number (default: 1)

population_size

The size of the resulting population. Since reproduction is done stochastically, the resulting population may not be this exact value.

mutation_rate

Rate at which mutations arise

progress_bar

Whether or not to show a progress bar (default: True)

Value

A modified mutationtree population

Note

This function simply calls reproduce, mutate, and then prune on the population for the specified number of cycles (generations).

See Also

reproduce

mutate

prune


briandconnelly/mutationtree documentation built on May 13, 2019, 5:14 a.m.