Learn R Programming

UAHDataScienceUC (version 1.0.1)

gka_selection: Selection method

Description

Selection method

Usage

gka_selection(p, fitness)

Value

the index of the individual selected for reproduction.

Arguments

p

the number of individuals in the population.

fitness

a vector of size p with the fitness of each individual in the population.

Author

Eduardo Ruiz Sabajanes, eduardo.ruizs@edu.uah.es