generation_gap: Replace a proportion G of the old generation with their...

Description Usage Arguments Value

View source: R/generation_gap.R

Description

Replace a proportion G of the old generation with their offspring.

Usage

1
generation_gap(old_gen, children, G = 1)

Arguments

old_gen

Output of ranked_models() of the previous generation. A data frame.

children

Output of ranked_models() of the children of the previous generation. A data frame.

G

Proportion of old_gen to replace with children.

Value

The next generation, in descending order of fitness (most fit first). A data frame.


kunaljaydesai/GA documentation built on May 28, 2019, 7:38 a.m.