SelectPropFitM: Selection proportional to fitness (vector/matrix).

View source: R/selectGene.R

SelectPropFitMR Documentation

Selection proportional to fitness (vector/matrix).

Description

SelectPropFitM() implements selection proportional to fitness. Negative fitness vectors are shifted to R^+. The default of the function lF$Offset() is 1. Holland's schema theorem uses this selection function. See John Holland (1975) for further information.

Usage

SelectPropFitM(fit, lF, size = 1)

Arguments

fit

Fitness vector.

lF

Local configuration.

size

Number of selected genes. Default: 1.

Value

The index vector of the selected genes.

Warning

The code is completely written in vector/matrix operations. outer uses O(n^2) memory cells.

References

Holland, John (1975): Adaptation in Natural and Artificial Systems, The University of Michigan Press, Ann Arbor. (ISBN:0-472-08460-7)

See Also

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

Examples

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

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