Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
The StatHandler for TTDeletMutations_bitstring. More...
#include <ttdeletmutations_bitstring.h>
Public Member Functions | |
TTDeletMutBitstrSH (TProtoDeletMutations_bitstring *TP) | |
virtual | ~TTDeletMutBitstrSH () |
virtual bool | setStatRecorders (std::string &token) |
void | setStatsForDeletMutations (age_t AGE) |
void | setViabStats (age_t AGE) |
void | setDeletStats (age_t AGE) |
void | setLethalEquivalents (age_t AGE) |
void | setFst (age_t AGE) |
void | setAdultDeletStats () |
void | setOffsprgDeletStats () |
void | setViability (age_idx agex) |
void | setAdultViab () |
void | setOffsprgViab () |
void | setMeanViability (age_idx agex) |
double | getMeanFecWithPatchMate (bool HOME) |
double | getBtheta () |
double | getBalpha () |
double | getHeterosis () |
double | getLoad () |
double | getPatchLoad (unsigned int i) |
double | getDeletAllFreq () |
double | getDeletAllHmz () |
double | getDeletAllHtz () |
double | getFixedDeletLoci () |
double | getFixedDeletLociPerPatch () |
double | getSegregatingDeletLoci () |
double | getSegregatingDeletLociPerPatch () |
double | getDeletAllPerGenome () |
double | getHs () |
double | getHt () |
double | getFst () |
double | getLethalEquivalents () |
double | getAdultsLetheq () |
double | getOffsprgLetheq () |
double | getViability (unsigned int v) |
double | getMeanViability () |
double | getMeanViability (unsigned int a) |
double | getSibProportions (unsigned int i) |
![]() | |
TraitStatHandler (TProtoDeletMutations_bitstring *trait_proto) | |
virtual | ~TraitStatHandler () |
![]() | |
StatHandler () | |
virtual | ~StatHandler () |
virtual void | clear () |
Empties the _recorders list, they are destroyed in StatHandlerBase::reset(). More... | |
virtual StatRecorder< SH > * | add (std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(SH::*getStatNoArg)(void), double(SH::*getStatOneArg)(unsigned int), double(SH::*getStatTwoArg)(unsigned int, unsigned int), void(SH::*setStat)(void)) |
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list. More... | |
![]() | |
StatHandlerBase () | |
virtual | ~StatHandlerBase () |
virtual void | reset () |
Empties the _stats list and calls clear() (defined in the derived class). More... | |
Metapop * | get_pop_ptr () |
void | set_service (StatServices *srv) |
StatServices * | get_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 void | init ()=0 |
Inits state. More... | |
virtual void | update ()=0 |
Updates the handler state. More... | |
virtual | ~Handler () |
Private Attributes | |
double | fecWithHomePatchMate |
double | fecWithOtherPatchMate |
double | _SibProps [5] |
double | _viability [5] |
double | _meanViab |
double | _deletHtzLoci |
double | _deletHmzLoci |
double | _fixLocPerPatch |
double | _segrLocPerPatch |
double | _Ho |
double | _Hs |
double | _Ht |
double | _Fst |
double | _Hmz |
double | _deletAllCount |
double | _freq |
double | _fixloc |
double | _segrloc |
double | _letheq |
double * | _deletFreqTable |
bool | _isContinuousEffect |
Additional Inherited Members | |
![]() | |
typedef std::list< StatRecorder< SH > * >::iterator | REC_IT |
![]() | |
TProtoDeletMutations_bitstring * | _SHLinkedTrait |
Pointer to a TraitProtoype object. More... | |
int | _SHLinkedTraitIndex |
Index of the trait in the Individual::Traits table. More... | |
![]() | |
std::list< StatRecorder< SH > * > | _recorders |
The list of stat recorders. More... | |
![]() | |
Metapop * | _pop |
Link to the current population, set through the link to the StatService. More... | |
The StatHandler for TTDeletMutations_bitstring.
|
inline |
References _isContinuousEffect, and TProtoDeletMutations_bitstring::get_iscontinuous().
|
inlinevirtual |
References _deletFreqTable.
|
inline |
References _letheq, ADULTS, and setDeletStats().
|
inline |
References fecWithOtherPatchMate.
|
inline |
References fecWithHomePatchMate.
|
inline |
References _freq.
Referenced by setStatsForDeletMutations().
|
inline |
References _Hmz.
Referenced by setStatsForDeletMutations().
|
inline |
References _Ho.
Referenced by setStatsForDeletMutations().
|
inline |
References _deletAllCount.
|
inline |
References _fixloc.
Referenced by setStatsForDeletMutations().
|
inline |
References _fixLocPerPatch.
Referenced by setStatsForDeletMutations().
|
inline |
References _Fst.
Referenced by setStatsForDeletMutations().
double TTDeletMutBitstrSH::getHeterosis | ( | ) |
References getMeanFecWithPatchMate().
Referenced by setStatsForDeletMutations().
|
inline |
References _Hs.
|
inline |
References _Ht.
|
inline |
References _letheq.
Referenced by setStatsForDeletMutations().
double TTDeletMutBitstrSH::getLoad | ( | ) |
References StatHandlerBase::_pop, ADLTx, FEM, Metapop::getPatch(), getPatchLoad(), Metapop::getPatchNbr(), and Patch::size().
Referenced by setStatsForDeletMutations().
double TTDeletMutBitstrSH::getMeanFecWithPatchMate | ( | bool | HOME | ) |
References StatHandlerBase::_pop, ADLTx, FEM, Patch::get(), Individual::getFecWithHomePatchMate(), Individual::getFecWithOtherPatchMate(), Individual::getLocalMatings(), Individual::getMatings(), Metapop::getPatch(), Metapop::getPatchNbr(), and Patch::size().
Referenced by getHeterosis().
|
inline |
References _meanViab.
Referenced by setStatRecorders(), and setViabStats().
|
inline |
References _meanViab, and setMeanViability().
|
inline |
References _letheq, OFFSPRG, and setDeletStats().
double TTDeletMutBitstrSH::getPatchLoad | ( | unsigned int | i | ) |
References StatHandlerBase::_pop, ADLTx, FEM, Patch::get(), Metapop::getPatch(), Individual::getTotMatings(), Individual::getTotRealizedFecundity(), and Patch::size().
Referenced by getLoad().
|
inline |
References _segrloc.
Referenced by setStatsForDeletMutations().
|
inline |
References _segrLocPerPatch.
Referenced by setStatsForDeletMutations().
|
inline |
|
inline |
|
inline |
References ADULTS, and setDeletStats().
Referenced by setStatsForDeletMutations().
|
inline |
References ADLTx, and setViability().
Referenced by setViabStats().
void TTDeletMutBitstrSH::setDeletStats | ( | age_t | AGE | ) |
References _deletAllCount, _deletFreqTable, _deletHmzLoci, _deletHtzLoci, _fixloc, _fixLocPerPatch, _freq, _Hmz, _Ho, _Hs, _Ht, StatHandlerBase::_pop, _segrloc, _segrLocPerPatch, TraitStatHandler< TProtoDeletMutations_bitstring, TTDeletMutBitstrSH >::_SHLinkedTrait, TraitStatHandler< TProtoDeletMutations_bitstring, TTDeletMutBitstrSH >::_SHLinkedTraitIndex, ADLTx, ADULTS, FEM, Patch::get(), TTDeletMutations_bitstring::get_nb_hmz_mutations(), TTDeletMutations_bitstring::get_nb_htz_mutations(), TProtoDeletMutations_bitstring::get_nb_locus(), TTDeletMutations_bitstring::get_nb_mut_atLocus(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTrait(), MAL, OFFSx, setFst(), setLethalEquivalents(), and Patch::size().
Referenced by getAdultsLetheq(), getOffsprgLetheq(), setAdultDeletStats(), and setOffsprgDeletStats().
void TTDeletMutBitstrSH::setFst | ( | age_t | AGE | ) |
References _Fst, _Ho, _Hs, _Ht, StatHandlerBase::_pop, Metapop::getPatch(), Metapop::getPatchNbr(), and Patch::size().
Referenced by setDeletStats().
void TTDeletMutBitstrSH::setLethalEquivalents | ( | age_t | AGE | ) |
References _deletFreqTable, _deletHmzLoci, _deletHtzLoci, _isContinuousEffect, _letheq, StatHandlerBase::_pop, TraitStatHandler< TProtoDeletMutations_bitstring, TTDeletMutBitstrSH >::_SHLinkedTrait, fatal(), TProtoDeletMutations_bitstring::get_nb_locus(), TProtoDeletMutations_bitstring::get_s_continous(), TProtoDeletMutations_bitstring::get_strength(), and Metapop::size().
Referenced by setDeletStats().
void TTDeletMutBitstrSH::setMeanViability | ( | age_idx | agex | ) |
References _meanViab, StatHandlerBase::_pop, TraitStatHandler< TProtoDeletMutations_bitstring, TTDeletMutBitstrSH >::_SHLinkedTraitIndex, ADLTx, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, and Patch::size().
Referenced by getMeanViability().
|
inline |
References OFFSPRG, and setDeletStats().
Referenced by setStatsForDeletMutations().
|
inline |
References OFFSx, and setViability().
Referenced by setViabStats().
|
virtual |
Implements StatHandlerBase.
References StatHandler< SH >::add(), ADLTx, ADULTS, ALL, getMeanViability(), message(), OFFSPRG, OFFSx, setStatsForDeletMutations(), and setViabStats().
void TTDeletMutBitstrSH::setStatsForDeletMutations | ( | age_t | AGE | ) |
References StatHandler< SH >::add(), ADULTS, ALL, getDeletAllFreq(), getDeletAllHmz(), getDeletAllHtz(), getFixedDeletLoci(), getFixedDeletLociPerPatch(), getFst(), getHeterosis(), getLethalEquivalents(), getLoad(), getSegregatingDeletLoci(), getSegregatingDeletLociPerPatch(), OFFSPRG, setAdultDeletStats(), setOffsprgDeletStats(), and setStatsForDeletMutations().
Referenced by setStatRecorders(), and setStatsForDeletMutations().
void TTDeletMutBitstrSH::setViability | ( | age_idx | agex | ) |
References _meanViab, StatHandlerBase::_pop, TraitStatHandler< TProtoDeletMutations_bitstring, TTDeletMutBitstrSH >::_SHLinkedTraitIndex, _SibProps, _viability, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getPedigreeClass(), Individual::getTrait(), TTrait::getValue(), MAL, and Patch::size().
Referenced by setAdultViab(), and setOffsprgViab().
void TTDeletMutBitstrSH::setViabStats | ( | age_t | AGE | ) |
References StatHandler< SH >::add(), ADULTS, ALL, getMeanViability(), getSibProportions(), getViability(), OFFSPRG, setAdultViab(), setOffsprgViab(), and setViabStats().
Referenced by setStatRecorders(), and setViabStats().
|
private |
Referenced by getDeletAllPerGenome(), and setDeletStats().
|
private |
Referenced by setDeletStats(), setLethalEquivalents(), and ~TTDeletMutBitstrSH().
|
private |
Referenced by setDeletStats(), and setLethalEquivalents().
|
private |
Referenced by setDeletStats(), and setLethalEquivalents().
|
private |
Referenced by getFixedDeletLoci(), and setDeletStats().
|
private |
Referenced by getFixedDeletLociPerPatch(), and setDeletStats().
|
private |
Referenced by getDeletAllFreq(), and setDeletStats().
|
private |
Referenced by getDeletAllHmz(), and setDeletStats().
|
private |
Referenced by getDeletAllHtz(), setDeletStats(), and setFst().
|
private |
Referenced by getHs(), setDeletStats(), and setFst().
|
private |
Referenced by getHt(), setDeletStats(), and setFst().
|
private |
Referenced by setLethalEquivalents(), and TTDeletMutBitstrSH().
|
private |
Referenced by getAdultsLetheq(), getLethalEquivalents(), getOffsprgLetheq(), and setLethalEquivalents().
|
private |
Referenced by getMeanViability(), setMeanViability(), and setViability().
|
private |
Referenced by getSegregatingDeletLoci(), and setDeletStats().
|
private |
Referenced by getSegregatingDeletLociPerPatch(), and setDeletStats().
|
private |
Referenced by getSibProportions(), and setViability().
|
private |
Referenced by getViability(), and setViability().
|
private |
Referenced by getBtheta().
|
private |
Referenced by getBalpha().