SelectPropFitOnln {xegaSelectGene}R Documentation

Selection proportional to fitness O(n ln(n)).

Description

SelectPropFitOnln 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.

@details This is a fast implementation with equivalent results to the functions SelectPropFit and SelectPropFitM. Its runtime is O(n . ln(n)).

Usage

SelectPropFitOnln(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.

Credits

The code of this function has been written by Fabian Aisenbrey.

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(), SelectPropFitDiffM(), SelectPropFitDiffOnln(), SelectPropFitDiff(), SelectPropFitM(), SelectPropFit(), SelectSTournament(), SelectSUS(), SelectTournament(), SelectUniformP(), SelectUniform()

Examples

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

[Package xegaSelectGene version 1.0.0.0 Index]