GARS_Elitism: Separate chromosome on the basis of the Fitness Scores

Description Usage Arguments Value Author(s) See Also Examples

View source: R/GARS_elitism.R

Description

This function splits the chromosome population in two parts allowing the best chromosomes to be preserved from the "evolutionary" steps: Selection, Crossover and Mutation.

Usage

1
GARS_Elitism(chr.pop, fitn.values, n.elit = 10)

Arguments

chr.pop

A matrix or a data.frame representing the chromosomes population: each column is a chromosome and each element corresponds to the feature position in the data matrix

fitn.values

A numeric vector where each element corresponds to the fitness score of each chromosome in 'chr.pop'

n.elit

The number of best chromosomes to be selected by elitism. This number must be even. Default is 10

Value

A list containing:

Author(s)

Mattia Chiesa, Luca Piacentini

See Also

GARS_Mutation, GARS_Selection, GARS_Crossover, GARS_FitFun,

Examples

1
2
3

BioinfoMonzino/GARS documentation built on Aug. 2, 2021, 1:08 a.m.