testSelectGene: Test a gene selection function

View source: R/selectGeneBenchmark.R

testSelectGeneR Documentation

Test a gene selection function

Description

testSelectGene() implements testing a selection function. It collects the results of the repeated execution of the selection function given a fitness function.

Usage

testSelectGene(
  fit,
  method = "Uniform",
  howOften = 100,
  lF = NewlFselectGenes(),
  continuation = TRUE,
  verbose = FALSE
)

Arguments

fit

Fitness vector.

method

String specifying the selection function. See SelectGeneFactory().

howOften

Integer.

lF

Local configuration.

continuation

Convert to index function?

verbose

Boolean. Default: FALSE. If TRUE, the exection time of the transformation of the selection function into a quasi-continuation function is printed on the console.

Value

  • $fit fitness vector.

  • $newPop indices of survivors in fitness vector.

  • $time time in seconds.

  • $size population size.

  • $method selection method used.

See Also

Other Benchmark Selection Functions: predictSelectTime(), runOneBenchmark(), runSelectBenchmarks(), selectBenchmark()

Examples

fit1<-rep(10,10)
fit2<-fit1+runif(rep(10,1))
fit3<-sample(100, 10, replace=TRUE)
testSelectGene(fit2, method="Tournament", howOften=100) 
testSelectGene(fit3, method="Tournament", howOften=10) 

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