xegaObservePopulation {xegaPopulation} | R Documentation |
Observe summary statistics of the fitness of the population.
Description
xegaObservePopulation()
reports
summary statistics of the fitness of the population.
Usage
xegaObservePopulation(fit, v = vector())
Arguments
fit |
Vector of fitness values of a population. |
v |
Vector of population statistic vectors. |
Details
Population statistics are used for
implementing individually variable operator rates and
visualizing the progress of the algorithm.
Value
Vector of population statistics. If position
x
modulo 8
equals
-
1
: Mean fitness. -
2
: Min fitness. -
3
: Lower-hinge (approx. 1st quartile) of fitness. -
4
: Median fitness. -
5
: Upper-hinge (approx. 3rd quartile) of fitness. -
6
: Max fitness. -
7
: Variance. -
8
: Mean absolute deviation.
See Also
Other Population Layer:
xegaBestGeneInPopulation()
,
xegaBestInPopulation()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaNextPopulation()
,
xegaSummaryPopulation()
Examples
pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
popStats<-xegaObservePopulation(epop10$fit)
popStats<-xegaObservePopulation(epop10$fit, popStats)
matrix(popStats, ncol=8, byrow=TRUE)