View source: R/xegaPopulation.R
xegaBestGeneInPopulation | R Documentation |
xegaBestGeneInPopulation()
extracts the indices of
the best genes in the population.
xegaBestGeneInPopulation(fit)
fit |
Fitness vector of a population of genes. |
You might use:
which(max(fit)==fit)
. But this is slower!
List of the indices of the best genes in the population.
Other Population Layer:
xegaBestInPopulation()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaNextPopulation()
,
xegaObservePopulation()
,
xegaRepEvalPopulation()
,
xegaSummaryPopulation()
pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
xegaBestGeneInPopulation(epop10$fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.