xegaBestGeneInPopulation {xegaPopulation} | R Documentation |
BestGeneInPopulation()
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()
,
xegaSummaryPopulation()
pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
xegaBestGeneInPopulation(epop10$fit)