xegaBestGeneInPopulation: Extracts indices of best genes in population.

View source: R/xegaPopulation.R

xegaBestGeneInPopulationR Documentation

Extracts indices of best genes in population.

Description

xegaBestGeneInPopulation() 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(), xegaRepEvalPopulation(), xegaSummaryPopulation()

Examples

pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
xegaBestGeneInPopulation(epop10$fit)


xegaPopulation documentation built on Aug. 22, 2025, 5:14 p.m.