Nemo  2.3.46
LCE_SelectionSH Class Reference

StatHandler class for the LCE_Selection class. More...

#include <LCEselection.h>

+ Inheritance diagram for LCE_SelectionSH:
+ Collaboration diagram for LCE_SelectionSH:

Public Member Functions

 LCE_SelectionSH (LCE_Selection_base *event)
 
virtual ~LCE_SelectionSH ()
 
virtual bool setStatRecorders (string &token)
 
void addMeanPerPatch (age_t AGE)
 
void addVarPerPatch (age_t AGE)
 
void setDataTable (age_t AGE)
 
void setAdultTable ()
 
void setOffsprgTable ()
 
double getMeanFitness ()
 
double getFitness (unsigned int i)
 
double getSurvival (unsigned int i)
 
double getPedProp (unsigned int i)
 
double getMeanPatchFitness (unsigned int i, unsigned int int_agex)
 
double getMeanPatchFitness (unsigned int i)
 
double getVarPatchFitness (unsigned int i, unsigned int int_agex)
 
- Public Member Functions inherited from EventStatHandler< LCE_Selection_base, LCE_SelectionSH >
 EventStatHandler (LCE_Selection_base *lce)
 
virtual ~EventStatHandler ()
 
- Public Member Functions inherited from StatHandler< LCE_SelectionSH >
 StatHandler ()
 
virtual ~StatHandler ()
 
virtual void clear ()
 Empties the _recorders list, they are destroyed in StatHandlerBase::reset(). More...
 
virtual StatRecorder
< LCE_SelectionSH > * 
add (std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(LCE_SelectionSH::*getStatNoArg)(void), double(LCE_SelectionSH::*getStatOneArg)(unsigned int), double(LCE_SelectionSH::*getStatTwoArg)(unsigned int, unsigned int), void(LCE_SelectionSH::*setStat)(void))
 Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list. More...
 
- Public Member Functions inherited from StatHandlerBase
 StatHandlerBase ()
 
virtual ~StatHandlerBase ()
 
virtual void reset ()
 Empties the _stats list and calls clear() (defined in the derived class). More...
 
Metapopget_pop_ptr ()
 
void set_service (StatServices *srv)
 
StatServicesget_service ()
 
unsigned int getOccurrence ()
 
unsigned int getNumOccurrences ()
 
unsigned int getCurrentOccurrence ()
 
unsigned int getNbRecorders ()
 
std::list< StatRecBase * > & getStats ()
 
virtual void add (StatRecBase *rec)
 
virtual void init ()
 
virtual void update ()
 This function is left empty as the StatServices calls StatRecorder::setVal directly. More...
 
virtual bool setStatRecorders (std::string &token)=0
 
- Public Member Functions inherited from Handler
virtual ~Handler ()
 

Private Attributes

vector< vector< double > > _phenoTable
 
unsigned int _table_set_gen
 
unsigned int _table_set_age
 
unsigned int _table_set_repl
 

Additional Inherited Members

- Protected Types inherited from StatHandler< LCE_SelectionSH >
typedef std::list
< StatRecorder
< LCE_SelectionSH >
* >::iterator 
REC_IT
 
- Protected Attributes inherited from EventStatHandler< LCE_Selection_base, LCE_SelectionSH >
LCE_Selection_base_SHLinkedEvent
 Pointer to the linked LCE. More...
 
- Protected Attributes inherited from StatHandler< LCE_SelectionSH >
std::list< StatRecorder
< LCE_SelectionSH > * > 
_recorders
 The list of stat recorders. More...
 
- Protected Attributes inherited from StatHandlerBase
Metapop_pop
 Link to the current population, set through the link to the StatService. More...
 

Detailed Description

StatHandler class for the LCE_Selection class.

Records the fitness stats.

Constructor & Destructor Documentation

LCE_SelectionSH::LCE_SelectionSH ( LCE_Selection_base event)
inline
316  :
318  _table_set_gen(999999), _table_set_age(999999), _table_set_repl(999999)
319  {}
unsigned int _table_set_repl
Definition: LCEselection.h:312
unsigned int _table_set_age
Definition: LCEselection.h:312
unsigned int _table_set_gen
Definition: LCEselection.h:312
virtual LCE_SelectionSH::~LCE_SelectionSH ( )
inlinevirtual
321 {}

Member Function Documentation

void LCE_SelectionSH::addMeanPerPatch ( age_t  AGE)

References StatHandlerBase::_pop, StatHandler< LCE_SelectionSH >::add(), ADLTx, ADULTS, ALL, getMeanPatchFitness(), Metapop::getPatchNbr(), tstring::int2str(), OFFSPRG, OFFSx, setAdultTable(), and setOffsprgTable().

Referenced by setStatRecorders().

1113 {
1114  unsigned int patchNbr = _pop->getPatchNbr();
1115 
1116  if (AGE == ALL) {
1119  return;
1120  }
1121 
1122  string suffix = (AGE == ADULTS ? "adlt.":"off."); //at this stage, AGE != ALL
1123  string name = suffix + "W.avg.p";
1124  string long_name = "Mean fitness in patch ";
1125  string patch;
1126 
1127  void (LCE_SelectionSH::* setter) (void) = (AGE == ADULTS ?
1130 
1131  unsigned int int_agex = static_cast<age_idx> ((AGE == ADULTS ? ADLTx : OFFSx));
1132 
1133  //first patch, gets the data table setter:
1134  add(long_name + "1", name + "1", AGE, 0, int_agex,
1136 
1137  for(unsigned int p = 1; p < patchNbr; p++) {
1138  patch = tstring::int2str(p+1);
1139  add(long_name + patch, name + patch, AGE, p, int_agex,
1141  }
1142 }
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
double getMeanPatchFitness(unsigned int i, unsigned int int_agex)
Definition: LCEselection.cc:1251
StatHandler class for the LCE_Selection class.
Definition: LCEselection.h:308
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
void addMeanPerPatch(age_t AGE)
Definition: LCEselection.cc:1112
void setAdultTable()
Definition: LCEselection.h:328
unsigned int getPatchNbr()
Definition: metapop.h:270
void setOffsprgTable()
Definition: LCEselection.h:329
Definition: types.h:42
static string int2str(const int i)
Writes an integer value into a string.
Definition: tstring.h:95
virtual StatRecorder< LCE_SelectionSH > * add(std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(LCE_SelectionSH::*getStatNoArg)(void), double(LCE_SelectionSH::*getStatOneArg)(unsigned int), double(LCE_SelectionSH::*getStatTwoArg)(unsigned int, unsigned int), void(LCE_SelectionSH::*setStat)(void))
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list.
Definition: stathandler.h:144
#define ALL
All ages age class flag.
Definition: types.h:56
Definition: types.h:42
Metapop * _pop
Link to the current population, set through the link to the StatService.
Definition: stathandler.h:61
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
void LCE_SelectionSH::addVarPerPatch ( age_t  AGE)

References StatHandlerBase::_pop, StatHandler< LCE_SelectionSH >::add(), ADLTx, ADULTS, ALL, Metapop::getPatchNbr(), getVarPatchFitness(), tstring::int2str(), OFFSPRG, OFFSx, setAdultTable(), and setOffsprgTable().

Referenced by setStatRecorders().

1147 {
1148  unsigned int patchNbr = _pop->getPatchNbr();
1149 
1150  if (AGE == ALL) {
1153  return;
1154  }
1155 
1156  string suffix = (AGE == ADULTS ? "adlt.":"off."); //at this stage, AGE != ALL
1157  string name = suffix + "W.var.p";
1158  string long_name = "Var fitness in patch ";
1159  string patch;
1160 
1161  void (LCE_SelectionSH::* setter) (void) = (AGE == ADULTS ?
1164 
1165  unsigned int int_agex = static_cast<age_idx> ((AGE == ADULTS ? ADLTx : OFFSx));
1166 
1167  //first patch, gets the data table setter:
1168  add(long_name + "1", name + "1", AGE, 0, int_agex,
1170 
1171  for(unsigned int p = 1; p < patchNbr; p++) {
1172  patch = tstring::int2str(p+1);
1173  add(long_name + patch, name + patch, AGE, p, int_agex,
1175  }
1176 }
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
StatHandler class for the LCE_Selection class.
Definition: LCEselection.h:308
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
void setAdultTable()
Definition: LCEselection.h:328
unsigned int getPatchNbr()
Definition: metapop.h:270
double getVarPatchFitness(unsigned int i, unsigned int int_agex)
Definition: LCEselection.cc:1278
void setOffsprgTable()
Definition: LCEselection.h:329
Definition: types.h:42
static string int2str(const int i)
Writes an integer value into a string.
Definition: tstring.h:95
virtual StatRecorder< LCE_SelectionSH > * add(std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(LCE_SelectionSH::*getStatNoArg)(void), double(LCE_SelectionSH::*getStatOneArg)(unsigned int), double(LCE_SelectionSH::*getStatTwoArg)(unsigned int, unsigned int), void(LCE_SelectionSH::*setStat)(void))
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list.
Definition: stathandler.h:144
#define ALL
All ages age class flag.
Definition: types.h:56
Definition: types.h:42
Metapop * _pop
Link to the current population, set through the link to the StatService.
Definition: stathandler.h:61
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
void addVarPerPatch(age_t AGE)
Definition: LCEselection.cc:1146
double LCE_SelectionSH::getFitness ( unsigned int  i)
inline

References LCE_Selection_base::_fitness, and EventStatHandler< LCE_Selection_base, LCE_SelectionSH >::_SHLinkedEvent.

Referenced by setStatRecorders().

333 {return _SHLinkedEvent->_fitness[i];}
double _fitness[5]
Fitness counters, one for each pedigree class.
Definition: LCEselection.h:92
LCE_Selection_base * _SHLinkedEvent
Pointer to the linked LCE.
Definition: stathandler.h:192
double LCE_SelectionSH::getMeanFitness ( )
inline

References LCE_Selection_base::_mean_fitness, and EventStatHandler< LCE_Selection_base, LCE_SelectionSH >::_SHLinkedEvent.

Referenced by setStatRecorders().

332 {return _SHLinkedEvent->_mean_fitness;}
LCE_Selection_base * _SHLinkedEvent
Pointer to the linked LCE.
Definition: stathandler.h:192
double _mean_fitness
Definition: LCEselection.h:89
double LCE_SelectionSH::getMeanPatchFitness ( unsigned int  i,
unsigned int  int_agex 
)

References _phenoTable, StatHandlerBase::_pop, Metapop::getPatchPtr(), and Patch::size().

Referenced by addMeanPerPatch(), and getVarPatchFitness().

1252 {
1253  age_idx age = static_cast<age_idx> (int_agex);
1254  unsigned int patch_size = _pop->getPatchPtr(i)->size(age);
1255 
1256  assert(patch_size == _phenoTable[i].size());
1257 
1258  if(patch_size == 0) return (nanf("NULL"));
1259 
1260  return getMeanPatchFitness(i);
1261 }
double getMeanPatchFitness(unsigned int i, unsigned int int_agex)
Definition: LCEselection.cc:1251
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
unsigned int size(age_t AGE)
Returns the size of the container of the appropriate age class(es) for both sexes.
Definition: metapop.h:487
vector< vector< double > > _phenoTable
Definition: LCEselection.h:311
Patch * getPatchPtr(unsigned int patch)
A secure version of the getPatch() method.
Definition: metapop.h:254
Metapop * _pop
Link to the current population, set through the link to the StatService.
Definition: stathandler.h:61
double LCE_SelectionSH::getMeanPatchFitness ( unsigned int  i)

References _phenoTable.

1266 {
1267  double mean = 0;
1268  unsigned int size = _phenoTable[i].size();
1269 
1270  for(unsigned int j = 0; j < size; j++)
1271  mean += _phenoTable[i][j];
1272 
1273  return mean/size;
1274 }
vector< vector< double > > _phenoTable
Definition: LCEselection.h:311
double LCE_SelectionSH::getPedProp ( unsigned int  i)
inline

References LCE_Selection_base::_ind_cntr, and EventStatHandler< LCE_Selection_base, LCE_SelectionSH >::_SHLinkedEvent.

Referenced by setStatRecorders().

335 {return _SHLinkedEvent->_ind_cntr[i];}
double _ind_cntr[5]
Definition: LCEselection.h:92
LCE_Selection_base * _SHLinkedEvent
Pointer to the linked LCE.
Definition: stathandler.h:192
double LCE_SelectionSH::getSurvival ( unsigned int  i)
inline

References EventStatHandler< LCE_Selection_base, LCE_SelectionSH >::_SHLinkedEvent, and LCE_Selection_base::_survival.

Referenced by setStatRecorders().

334 {return _SHLinkedEvent->_survival[i];}
LCE_Selection_base * _SHLinkedEvent
Pointer to the linked LCE.
Definition: stathandler.h:192
double _survival[5]
Definition: LCEselection.h:92
double LCE_SelectionSH::getVarPatchFitness ( unsigned int  i,
unsigned int  int_agex 
)

References _phenoTable, StatHandlerBase::_pop, getMeanPatchFitness(), Metapop::getPatchPtr(), and Patch::size().

Referenced by addVarPerPatch().

1279 {
1280  age_idx age = static_cast<age_idx> (int_agex);
1281  unsigned int patch_size = _pop->getPatchPtr(i)->size(age);
1282 
1283  assert(patch_size == _phenoTable[i].size());
1284 
1285  if(patch_size == 0) return nanf("NULL");
1286 
1287  double mean = getMeanPatchFitness(i);
1288  double var = 0;
1289 
1290  for(unsigned int j = 0; j < patch_size; j++) {
1291 
1292  var += pow(_phenoTable[i][j] - mean, 2.0);
1293  }
1294 
1295  return var/patch_size;
1296 }
double getMeanPatchFitness(unsigned int i, unsigned int int_agex)
Definition: LCEselection.cc:1251
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
unsigned int size(age_t AGE)
Returns the size of the container of the appropriate age class(es) for both sexes.
Definition: metapop.h:487
vector< vector< double > > _phenoTable
Definition: LCEselection.h:311
Patch * getPatchPtr(unsigned int patch)
A secure version of the getPatch() method.
Definition: metapop.h:254
Metapop * _pop
Link to the current population, set through the link to the StatService.
Definition: stathandler.h:61
void LCE_SelectionSH::setAdultTable ( )
inline

References ADULTS, and setDataTable().

Referenced by addMeanPerPatch(), and addVarPerPatch().

void setDataTable(age_t AGE)
Definition: LCEselection.cc:1180
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
void LCE_SelectionSH::setDataTable ( age_t  AGE)

References LCE_Selection_base::_is_absolute, LCE_Selection_base::_is_local, _phenoTable, StatHandlerBase::_pop, EventStatHandler< LCE_Selection_base, LCE_SelectionSH >::_SHLinkedEvent, _table_set_age, _table_set_gen, _table_set_repl, ADLTx, ADULTS, fatal(), FEM, Patch::get(), Metapop::getCurrentGeneration(), Metapop::getCurrentReplicate(), LCE_Selection_base::getFitness(), Metapop::getPatch(), Metapop::getPatchNbr(), MAL, OFFSx, LCE_Selection_base::setScalingFactorGlobal(), LCE_Selection_base::setScalingFactorLocal(), Metapop::size(), and Patch::size().

Referenced by setAdultTable(), and setOffsprgTable().

1181 {
1182  if(_table_set_age == AGE
1185  ) return;
1186 
1187  unsigned int patchNbr = _pop->getPatchNbr();
1188 
1189  if(_phenoTable.size() != patchNbr) {
1190  if(_phenoTable.size() < patchNbr) {
1191  while (_phenoTable.size() < patchNbr)
1192  _phenoTable.push_back(vector<double>());
1193  } else {
1194  while (_phenoTable.size() > patchNbr) {
1195  _phenoTable.pop_back();
1196  }
1197  }
1198  }
1199 
1200  for(unsigned int i = 0; i < patchNbr; ++i) {
1201  _phenoTable[i].assign(_pop->size(AGE, i),0);
1202  }
1203 
1204  Patch* patch;
1205 
1206  age_idx age = (AGE == ADULTS ? ADLTx : OFFSx);
1207 
1208  for(unsigned int i = 0, n; i < patchNbr; i++) {
1209 
1210 
1211  patch = _pop->getPatch(i);
1212 
1213 
1214  if( !_SHLinkedEvent->_is_absolute ) {
1217  else
1219  }
1220 
1221  n = 0;
1222 
1223  for(unsigned int j = 0, size = patch->size(FEM, age);
1224  j < size && n < _phenoTable[i].size();
1225  j++)
1226  {
1227  _phenoTable[i][n++] = _SHLinkedEvent->getFitness( patch->get(FEM, age, j), i);
1228  }
1229 
1230  for(unsigned int j = 0, size = patch->size(MAL, age);
1231  j < size && n < _phenoTable[i].size();
1232  j++)
1233  {
1234  _phenoTable[i][n++] = _SHLinkedEvent->getFitness( patch->get(MAL, age, j), i);
1235  }
1236 
1237 
1238  if (n != _phenoTable[i].size()) {
1239  fatal("problem while recording fitness trait values; size counter doesn't match table size.\n");
1240  }
1241  }
1242 
1243  _table_set_age = AGE;
1246 
1247 }
unsigned int _table_set_repl
Definition: LCEselection.h:312
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
unsigned int size(age_t AGE)
Returns the size of the container of the appropriate age class(es) for both sexes.
Definition: metapop.h:487
unsigned int _table_set_age
Definition: LCEselection.h:312
unsigned int getCurrentGeneration()
Definition: metapop.h:286
void fatal(const char *str,...)
Definition: output.cc:90
LCE_Selection_base * _SHLinkedEvent
Pointer to the linked LCE.
Definition: stathandler.h:192
Second class in the metapopulation design structure, between the Metapop and Individual classes...
Definition: metapop.h:421
Patch * getPatch(unsigned int i)
Patch accessor, return the ith+1 patch in the metapop.
Definition: metapop.h:251
vector< vector< double > > _phenoTable
Definition: LCEselection.h:311
unsigned int getPatchNbr()
Definition: metapop.h:270
unsigned int getCurrentReplicate()
Definition: metapop.h:285
Definition: types.h:42
void setScalingFactorGlobal(age_idx age, unsigned int p)
Sets the fitness scaling factor equal to the inverse of the mean population fitness.
Definition: LCEselection.cc:820
void setScalingFactorLocal(age_idx age, unsigned int p)
Sets the fitness scaling factor equal to the inverse of the mean local patch fitness.
Definition: LCEselection.cc:812
Definition: types.h:37
Definition: types.h:42
Individual * get(sex_t SEX, age_idx AGE, unsigned int at)
Returns a pointer to the individual sitting at the index passed.
Definition: metapop.h:523
Metapop * _pop
Link to the current population, set through the link to the StatService.
Definition: stathandler.h:61
double getFitness(Individual *ind, unsigned int patch)
Calls the fitness function according to the fitness model.
Definition: LCEselection.h:204
unsigned int size()
Get the total number of individuals present in the population, all sex and age classes together...
Definition: metapop.h:302
unsigned int _table_set_gen
Definition: LCEselection.h:312
bool _is_absolute
Definition: LCEselection.h:90
Definition: types.h:37
bool _is_local
Definition: LCEselection.h:90
void LCE_SelectionSH::setOffsprgTable ( )
inline

References OFFSPRG, and setDataTable().

Referenced by addMeanPerPatch(), and addVarPerPatch().

void setDataTable(age_t AGE)
Definition: LCEselection.cc:1180
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
bool LCE_SelectionSH::setStatRecorders ( string &  token)
virtual

References StatHandler< LCE_SelectionSH >::add(), addMeanPerPatch(), addVarPerPatch(), ADULTS, ALL, getFitness(), getMeanFitness(), getPedProp(), getSurvival(), and OFFSPRG.

1055 {
1056  string age_tag = token.substr(0,token.find_first_of("."));
1057  string sub_token;
1058  age_t AGE = ALL;
1059 
1060  if (age_tag.size() != 0 && age_tag.size() != string::npos) {
1061 
1062  if (age_tag == "adlt") AGE = ADULTS;
1063 
1064  else if (age_tag == "off") AGE = OFFSPRG;
1065 
1066  else age_tag = "";
1067 
1068  } else {
1069  age_tag = "";
1070  }
1071 
1072  if (age_tag.size() != 0)
1073  sub_token = token.substr(token.find_first_of(".") + 1, string::npos);
1074  else
1075  sub_token = token;
1076 
1077  if(sub_token == "fitness") {
1078  add("Mean population fitness","fitness.mean",ALL,0,0,&LCE_SelectionSH::getMeanFitness,0,0,0);
1079  add("Mean population fitness","fitness.outb",ALL,0,0,0,&LCE_SelectionSH::getFitness,0,0);
1080  add("Mean population fitness","fitness.outw",ALL,1,0,0,&LCE_SelectionSH::getFitness,0,0);
1081  add("Mean population fitness","fitness.hsib",ALL,2,0,0,&LCE_SelectionSH::getFitness,0,0);
1082  add("Mean population fitness","fitness.fsib",ALL,3,0,0,&LCE_SelectionSH::getFitness,0,0);
1083  add("Mean population fitness","fitness.self",ALL,4,0,0,&LCE_SelectionSH::getFitness,0,0);
1084  } else if(sub_token == "survival") {
1085  add("Mean offspring survival","survival.outb",ALL,0,0,0,&LCE_SelectionSH::getSurvival,0,0);
1086  add("Mean offspring survival","survival.outw",ALL,1,0,0,&LCE_SelectionSH::getSurvival,0,0);
1087  add("Mean offspring survival","survival.hsib",ALL,2,0,0,&LCE_SelectionSH::getSurvival,0,0);
1088  add("Mean offspring survival","survival.fsib",ALL,3,0,0,&LCE_SelectionSH::getSurvival,0,0);
1089  add("Mean offspring survival","survival.self",ALL,4,0,0,&LCE_SelectionSH::getSurvival,0,0);
1090  } else if(sub_token == "fitness.prop") {
1091  add("Proportion of b/n demes outbreds","prop.outb",ALL,0,0,0,&LCE_SelectionSH::getPedProp,0,0);
1092  add("Proportion of w/n demes outbreds","prop.outw",ALL,1,0,0,&LCE_SelectionSH::getPedProp,0,0);
1093  add("Proportion of half-sib crossings","prop.hsib",ALL,2,0,0,&LCE_SelectionSH::getPedProp,0,0);
1094  add("Proportion of full-sib crossings","prop.fsib",ALL,3,0,0,&LCE_SelectionSH::getPedProp,0,0);
1095  add("Proportion of selfed progeny","prop.self",ALL,4,0,0,&LCE_SelectionSH::getPedProp,0,0);
1096 
1097  } else if(sub_token == "fitness.patch") {
1098 
1099  addMeanPerPatch(AGE);
1100 
1101  } else if(sub_token == "fitness.var.patch") {
1102 
1103  addVarPerPatch(AGE);
1104 
1105  } else return false;
1106 
1107  return true;
1108 }
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
unsigned int age_t
Age class flags.
Definition: types.h:46
void addMeanPerPatch(age_t AGE)
Definition: LCEselection.cc:1112
double getSurvival(unsigned int i)
Definition: LCEselection.h:334
double getPedProp(unsigned int i)
Definition: LCEselection.h:335
virtual StatRecorder< LCE_SelectionSH > * add(std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(LCE_SelectionSH::*getStatNoArg)(void), double(LCE_SelectionSH::*getStatOneArg)(unsigned int), double(LCE_SelectionSH::*getStatTwoArg)(unsigned int, unsigned int), void(LCE_SelectionSH::*setStat)(void))
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list.
Definition: stathandler.h:144
#define ALL
All ages age class flag.
Definition: types.h:56
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
double getMeanFitness()
Definition: LCEselection.h:332
void addVarPerPatch(age_t AGE)
Definition: LCEselection.cc:1146
double getFitness(unsigned int i)
Definition: LCEselection.h:333

Member Data Documentation

vector< vector< double > > LCE_SelectionSH::_phenoTable
private
unsigned int LCE_SelectionSH::_table_set_age
private

Referenced by setDataTable().

unsigned int LCE_SelectionSH::_table_set_gen
private

Referenced by setDataTable().

unsigned int LCE_SelectionSH::_table_set_repl
private

Referenced by setDataTable().


The documentation for this class was generated from the following files:

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR