View source: R/selectGeneBenchmark.R
testSelectGene | R Documentation |
testSelectGene()
implements
testing a selection function.
It collects the results of the repeated execution
of the selection function
given a fitness function.
testSelectGene(
fit,
method = "Uniform",
howOften = 100,
lF = NewlFselectGenes(),
continuation = TRUE,
verbose = FALSE
)
fit |
Fitness vector. |
method |
String specifying the selection function.
See |
howOften |
Integer. |
lF |
Local configuration. |
continuation |
Convert to index function? |
verbose |
Boolean. Default: |
$fit
fitness vector.
$newPop
indices of survivors in fitness vector.
$time
time in seconds.
$size
population size.
$method
selection method used.
Other Benchmark Selection Functions:
predictSelectTime()
,
runOneBenchmark()
,
runSelectBenchmarks()
,
selectBenchmark()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.