testSelectGene {xegaSelectGene} | R 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 |
howOften |
Integer. |
lF |
Local configuration. |
continuation |
Convert to index function? |
verbose |
Boolean. Default: |
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)
[Package xegaSelectGene version 1.0.0.0 Index]