Population class - inherits a vector of Deme objects. More...
#include <Population.h>
Public Member Functions | |
bool | initialize (StateP state) |
Initialize population (serial ECF). | |
void | registerParameters (StateP state) |
register population specific parameters | |
void | write (XMLNode &) |
Write population to XMLNode (serial ECF). | |
void | read (XMLNode &) |
Read population from XMLNode (serial ECF). Population must be initialize()-d beforehand! | |
void | updateDemeStats () |
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes. | |
uint | getNoDemes () |
return total number of demes | |
uint | getLocalDemeId () |
return local deme index (local process in parallel ECF) | |
DemeP | getLocalDeme () |
get first deme (local deme in parallel ECF) | |
HallOfFameP | getHof () |
get population HallofFame | |
StatCalcP | getStats () |
get population stats | |
Protected Attributes | |
uint | nDemes_ |
total number of demes in the population | |
uint | myDemeIndex_ |
global index of local deme (at local process) - PECF only | |
uint | nIndividuals_ |
number of individuals (in each deme!) | |
StateP | state_ |
HallOfFameP | hof_ |
population HallOfFame | |
StatCalcP | stats_ |
population statistics |
Population class - inherits a vector of Deme objects.
Population may consist of one or more demes. The demes evolve independently of each other.
Parallel ECF: Population object of each process contains only one Deme (called the local Deme)!
Definition at line 14 of file Population.h.
bool Population::initialize | ( | StateP | state | ) |
Initialize population (serial ECF).
Initialize population (parallel ECF).
Definition at line 35 of file Population.cpp.
void Population::read | ( | XMLNode & | xPopulation | ) |
Read population from XMLNode (serial ECF). Population must be initialize()-d beforehand!
Read population from XMLNode (parallel ECF). Population must be initialize()-d beforehand!
Definition at line 65 of file Population.cpp.
void Population::updateDemeStats | ( | ) |
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes.
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes. (parallel ECF)
Definition at line 100 of file Population.cpp.
void Population::write | ( | XMLNode & | xPopulation | ) |
Write population to XMLNode (serial ECF).
Write population to XMLNode (parallel ECF).
Definition at line 80 of file Population.cpp.