SelectDuel: Deterministic duel.

View source: R/selectGene.R

SelectDuelR Documentation

Deterministic duel.

Description

SelectDuel() implements selection by a tournament between 2 randomly selected genes. The best gene always wins. This is the version of tournament selection with the least selection pressure.

Usage

SelectDuel(fit, lF, size = 1)

Arguments

fit

Fitness vector.

lF

Local configuration.

size

Number of selected genes. Default: 1.

Details

This is an O(n) implementation of tournament selection with a tournament size of 2.

A special case of tournament selection.

Value

The index vector of the selected genes.

See Also

Other Selection Functions: SelectLRSelective(), SelectLinearRankTSR(), SelectPropFit(), SelectPropFitDiff(), SelectPropFitDiffM(), SelectPropFitDiffOnln(), SelectPropFitM(), SelectPropFitOnln(), SelectSTournament(), SelectSUS(), SelectTournament(), SelectUniform(), SelectUniformP()

Examples

fit<-sample(10, 15, replace=TRUE)
SelectDuel(fit, NewlFselectGenes()) 
SelectDuel(fit, NewlFselectGenes(), length(fit)) 

xegaSelectGene documentation built on April 16, 2025, 5:12 p.m.