SelectUniform {xegaSelectGene}R Documentation

Selection with uniform probability.

Description

SelectUniform implements selection by choosing a gene with equal probability.

Usage

SelectUniform(fit, lF, size = 1)

Arguments

fit

Fitness vector.

lF

Local configuration.

size

Number of selected genes. Default: 1.

Details

This selection function is useful:

  1. To specify mating behavior in crossover operators.

  2. For computer experiments without selection pressure.

  3. For computing random search solutions as a benchmark.

Value

The index vector of the selected genes.

See Also

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

Examples

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

[Package xegaSelectGene version 1.0.0.0 Index]