Nemo  2.3.46
MPStatHandler.h
Go to the documentation of this file.
1 
30 #ifndef MPSTATHANDLER_H
31 #define MPSTATHANDLER_H
32 
33 #include <list>
34 #include "stathandler.h"
35 
36 class Individual;
37 class Metapop;
40 class MPStatHandler : public StatHandler<MPStatHandler> {
41 
44  double _sib_prop[5], _ped_prop[5];
46 
47 public:
48 
50 
51  virtual ~MPStatHandler() {}
52 
53  virtual bool setStatRecorders(std::string& token);
54 
55  void setStatsForDemography(age_t AGE);
56  void setStatsForPop();
58  void setStatsForMigrants();
60  void addIndNumPerPatch(sex_t SEX, age_t AGE);
61  void addPatchAge();
64  double getMeanEmigrantPerPatch ();
65  double getMeanImigrantPerPatch ();
66  double getMeanMigrantRatio ();
67  double getMeanResidantPerPatch ();
69  double getMeanKolonisersPerPatch ();
70  double getEmigrantInPatch (unsigned int i);
71  double getResidantInPatch (unsigned int i);
72  double getImigrateInPatch (unsigned int i);
73  double getKolonisersInPatch(unsigned int i);
79  double get_isAlive ();
80  double getPatchAge (unsigned int i);
81  double getMeanPatchAge ();
85  double getAdultSexRatio ();
86  double getOffsprgSexRatio ();
87  double getPatchSize (unsigned int age, unsigned int patch);
88  double getPopulationSize (unsigned int age);
89  double getMeanPatchSize (unsigned int age);
90  double getMeanPatchSizePerSex (unsigned int sex, unsigned int age);
91  double getMeanPatchDensity (age_t AGE);
93 
94  double getFemNumber (unsigned int i);
95  double getMalNumber (unsigned int i);
96  double getOffFemNumber (unsigned int i);
97  double getOffMalNumber (unsigned int i);
98  double getMeanAssignedFecundity (unsigned int sex);
99  double getMeanMatings (unsigned int sex);
100  double setReproductiveStats (unsigned int sex);
105  void setKinship ();
106  void setKinClassCounter (Individual *I1, Individual *I2);
107  double getSibProportion (unsigned int i) {return _sib_prop[i];}
111  void setPedegreeCount ();
112  double getPedProportion (unsigned int i) {return _ped_prop[i];}
114 };
115 
116 #endif
double getKolonisersInPatch(unsigned int i)
Definition: stats_demo.cc:148
double getPopulationSize(unsigned int age)
Definition: stats_demo.cc:560
double meanKolonisers
Definition: MPStatHandler.h:42
void addPatchAge()
Definition: MPStatHandler.cc:203
void setStatsForPop()
Definition: MPStatHandler.cc:136
double meanDeadDisp
Definition: MPStatHandler.h:42
unsigned int age_t
Age class flags.
Definition: types.h:46
double getMeanEmigrantPerPatch()
Definition: stats_demo.cc:43
double getMalNumber(unsigned int i)
Definition: stats_demo.cc:565
double getPatchSize(unsigned int age, unsigned int patch)
Definition: stats_demo.cc:559
double getEmigrantInPatch(unsigned int i)
Definition: stats_demo.cc:128
double getOffMalNumber(unsigned int i)
Definition: stats_demo.cc:563
Top class of the metapopulation structure, contains the patches.
Definition: metapop.h:79
double meanImigrant
Definition: MPStatHandler.h:42
double getMeanMigrantRatio()
Definition: stats_demo.cc:72
double getMeanAssignedFecundity(unsigned int sex)
Definition: stats_demo.cc:267
double getPatchAge(unsigned int i)
Definition: stats_demo.cc:172
double _sib_prop[5]
Definition: MPStatHandler.h:44
void setKinship()
Definition: stats_demo.cc:407
double getMeanKolonisersPerPatch()
Definition: stats_demo.cc:113
double getMeanResidantPerPatch()
Definition: stats_demo.cc:79
void setStatsForPopPerPatch()
Definition: MPStatHandler.cc:161
A StatHandler for the Metapop SimComponent.
Definition: MPStatHandler.h:40
double setReproductiveStats(unsigned int sex)
Definition: stats_demo.cc:335
MPStatHandler()
Definition: MPStatHandler.h:49
sex_t
Sex types, males are always 0 and females 1!!
Definition: types.h:36
double get_isAlive()
double getFemNumber(unsigned int i)
Definition: stats_demo.cc:564
double getMeanMatings(unsigned int sex)
Definition: stats_demo.cc:301
void setObsrvdExtinctionRate()
Definition: stats_demo.cc:162
double getMeanKolonisersProportion()
Definition: stats_demo.cc:96
A class to compute and store the summary statistics associated with a SimComponent.
Definition: stathandler.h:110
double getOffsprgSexRatio()
Definition: stats_demo.cc:556
double getMeanPatchDensityVariance(age_t AGE)
Definition: stats_demo.cc:238
void setStatsForMigrants()
Definition: MPStatHandler.cc:223
double _var_reprod_success
Definition: MPStatHandler.h:45
void setPedegreeCount()
Definition: stats_demo.cc:518
double getMeanPatchSize(unsigned int age)
Definition: stats_demo.cc:192
double getMeanPatchSizePerSex(unsigned int sex, unsigned int age)
Definition: stats_demo.cc:207
double getObsrvdExtinctionRate()
Definition: MPStatHandler.h:78
double getPedProportion(unsigned int i)
Definition: MPStatHandler.h:112
double meanResidant
Definition: MPStatHandler.h:42
virtual bool setStatRecorders(std::string &token)
Definition: MPStatHandler.cc:42
double getSibProportion(unsigned int i)
Definition: MPStatHandler.h:107
double _ped_prop[5]
Definition: MPStatHandler.h:44
void addIndNumPerPatch(sex_t SEX, age_t AGE)
Definition: MPStatHandler.cc:170
double getMeanPatchDensity(age_t AGE)
Definition: stats_demo.cc:222
double getImigrateInPatch(unsigned int i)
Definition: stats_demo.cc:140
double getMeanPatchAge()
Definition: stats_demo.cc:178
double getMeanImigrantPerPatch()
Definition: stats_demo.cc:55
double ObservedExtinctionRate
Definition: MPStatHandler.h:43
This class contains traits along with other individual information (sex, pedigree, etc. ).
Definition: individual.h:49
void setKinClassCounter(Individual *I1, Individual *I2)
Definition: stats_demo.cc:496
void setStatsForMigrantsPerPatch()
Definition: MPStatHandler.cc:233
double getOffFemNumber(unsigned int i)
Definition: stats_demo.cc:562
double meanEmigrant
Definition: MPStatHandler.h:42
double getReproductiveVar()
Definition: MPStatHandler.h:101
void setStatsForDemography(age_t AGE)
Definition: MPStatHandler.cc:148
double getAdultSexRatio()
Definition: stats_demo.cc:557
double getResidantInPatch(unsigned int i)
Definition: stats_demo.cc:134
virtual ~MPStatHandler()
Definition: MPStatHandler.h:51

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