xegaBestGeneInPopulation {xegaPopulation} | R Documentation |
Extracts indices of best genes in population.
Description
BestGeneInPopulation()
extracts the indices of
the best genes in the population.
Usage
xegaBestGeneInPopulation(fit)
Arguments
fit |
Fitness vector of a population of genes. |
Details
You might use:
which(max(fit)==fit)
. But this is slower!
Value
List of the indices of the best genes in the population.
See Also
Other Population Layer:
xegaBestInPopulation()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaNextPopulation()
,
xegaObservePopulation()
,
xegaSummaryPopulation()
Examples
pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
xegaBestGeneInPopulation(epop10$fit)
[Package xegaPopulation version 1.0.0.0 Index]