SelectDuel {xegaSelectGene}R 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(), SelectPropFitDiffM(), SelectPropFitDiffOnln(), SelectPropFitDiff(), SelectPropFitM(), SelectPropFitOnln(), SelectPropFit(), SelectSTournament(), SelectSUS(), SelectTournament(), SelectUniformP(), SelectUniform()

Examples

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

[Package xegaSelectGene version 1.0.0.0 Index]