Nemo  2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
TT_BDMI Class Reference

#include <ttbdmi.h>

+ Inheritance diagram for TT_BDMI:
+ Collaboration diagram for TT_BDMI:

Public Member Functions

 TT_BDMI ()
 
 TT_BDMI (const TT_BDMI &T)
 
virtual ~TT_BDMI ()
 
void set_sequence (bitstring **seq)
 
void inherit_haplo (TTrait *mother, TTrait *father)
 
void inherit_diplo (TTrait *mother, TTrait *father)
 
void mutate_haplo ()
 
void mutate_diplo ()
 
double viability_haplo ()
 
double viability_diplo ()
 
unsigned int get_num_mut_haplo (unsigned int loc)
 
unsigned int get_num_mut_diplo (unsigned int loc)
 
Setters:
void set_nb_locus (int val)
 
void set_mut_rate (double val)
 
void set_geno_rate (double val)
 
void set_recomb_rate (double val)
 
void set_isHaploid (bool val)
 
void set_inherit_func_ptr (void(TT_BDMI::*theFunc)(TTrait *, TTrait *))
 
void set_mutation_func_ptr (void(TT_BDMI::*theFunc)(void))
 
void set_viability_func_ptr (double(TT_BDMI::*theFunc)(void))
 
void set_proto (TProtoBDMI *proto)
 
Implementations
virtual void init ()
 
virtual void init_sequence ()
 
virtual void reset ()
 
virtual void inherit (TTrait *mother, TTrait *father)
 
virtual void mutate ()
 
virtual void * set_trait (void *value)
 
virtual void set_sequence (void **seq)
 
virtual void set_value ()
 
virtual void * getValue () const
 
virtual trait_t get_type () const
 
virtual void ** get_sequence () const
 
virtual double get_allele_value (int loc, int all)
 
virtual void set_allele_value (unsigned int locus, unsigned int allele, double value)
 
virtual void show_up ()
 
virtual TT_BDMIclone ()
 
virtual TT_BDMIoperator= (const TTrait &)
 
virtual bool operator== (const TTrait &)
 
virtual bool operator!= (const TTrait &)
 
virtual void store_data (BinaryStorageBuffer *saver)
 
virtual bool retrieve_data (BinaryStorageBuffer *reader)
 
- Public Member Functions inherited from TTrait
virtual void init ()=0
 Called to allocate the trait's genotypic sequences. More...
 
virtual void init_sequence ()=0
 Called at the start of each replicate, sets the initial genotypes. More...
 
virtual void reset ()=0
 Called at the end of each simulation/replicate, deallocates sequence memory. More...
 
virtual void inherit (TTrait *mother, TTrait *father)=0
 Inheritance procedure, creates a new trait from mother's and father's traits. More...
 
virtual void mutate ()=0
 Mutation procedure, perform mutations on the genes sequence. More...
 
virtual void * set_trait (void *value)=0
 Called to set the phenotypic to a particular value or to give context-dependant value(s) to the trait. More...
 
virtual void set_sequence (void **seq)=0
 Called to set the sequence pointer to an existing trait. More...
 
virtual double get_allele_value (int loc, int all)=0
 Called to read one allele value at a particular locus. More...
 
virtual void set_allele_value (unsigned int locus, unsigned int allele, double value)=0
 Called to change the allelic value at a particular locus. More...
 
virtual void set_value ()=0
 Tells the trait to set its phenotype from genotype, should be used instead of getValue(). More...
 
virtual void * getValue () const =0
 Genotype to phenotype mapper. More...
 
virtual trait_t get_type () const =0
 type accessor. More...
 
virtual void ** get_sequence () const =0
 sequence accessor. More...
 
virtual void show_up ()=0
 Writes some info to stdout. More...
 
virtual TTraitclone ()=0
 Returns a copy of itself. More...
 
virtual ~TTrait ()
 
- Public Member Functions inherited from StorableComponent
virtual void store_data (BinaryStorageBuffer *saver)=0
 Interface to store the component data (e.g. gene values) into a binary buffer. More...
 
virtual bool retrieve_data (BinaryStorageBuffer *reader)=0
 Interface to retrieve the same data from the binary buffer. More...
 
virtual ~StorableComponent ()
 

Private Attributes

TProtoBDMI_myProto
 
bitstring_sequence [2]
 
double _phenotype
 
bool _isHaploid
 
unsigned int _nb_locus
 
double _mut_rate
 
double _genomic_mut_rate
 
double _recomb_rate
 
void(TT_BDMI::* _inherit_func_ptr )(TTrait *, TTrait *)
 
void(TT_BDMI::* _mutation_func_ptr )(void)
 
double(TT_BDMI::* _viability_func_ptr )(void)
 

Static Private Attributes

static unsigned int_recomb_template
 
static unsigned int_rSites
 
static unsigned char * _sites
 
static unsigned int _haploGenotCoding [2][2] = {{0,1},{2,3}}
 
static unsigned int _diploGenotCoding [2][2] = {{0,1},{1,2}}
 

Constructor & Destructor Documentation

◆ TT_BDMI() [1/2]

TT_BDMI::TT_BDMI ( )
inline
163 {_sequence[0] = _sequence[1] = NULL;}
double _genomic_mut_rate
Definition: ttbdmi.h:146
double _recomb_rate
Definition: ttbdmi.h:147
bool _isHaploid
Definition: ttbdmi.h:142
void(TT_BDMI::* _inherit_func_ptr)(TTrait *, TTrait *)
Definition: ttbdmi.h:149
bitstring * _sequence[2]
Definition: ttbdmi.h:138
TProtoBDMI * _myProto
Definition: ttbdmi.h:136
double _phenotype
Definition: ttbdmi.h:140
double _mut_rate
Definition: ttbdmi.h:145
double(TT_BDMI::* _viability_func_ptr)(void)
Definition: ttbdmi.h:151
void(TT_BDMI::* _mutation_func_ptr)(void)
Definition: ttbdmi.h:150
unsigned int _nb_locus
Definition: ttbdmi.h:144

References _sequence.

Referenced by clone().

+ Here is the caller graph for this function:

◆ TT_BDMI() [2/2]

◆ ~TT_BDMI()

virtual TT_BDMI::~TT_BDMI ( )
inlinevirtual
172{ }

Member Function Documentation

◆ clone()

virtual TT_BDMI * TT_BDMI::clone ( )
inlinevirtual

Implements TTrait.

225{return new TT_BDMI(*this);}
TT_BDMI()
Definition: ttbdmi.h:160

References TT_BDMI().

◆ get_allele_value()

double TT_BDMI::get_allele_value ( int  loc,
int  all 
)
virtual

Implements TTrait.

354{
355 if(_isHaploid)
356 return _myProto->getGenoFitnessHaplo(loc, all);
357 else
358 return _myProto->getGenoFitnessDiplo(loc, all);
359}
double getGenoFitnessHaplo(unsigned int row, unsigned int pos)
Definition: ttbdmi.h:84
double getGenoFitnessDiplo(unsigned int row, unsigned int posA, unsigned int posB)
Definition: ttbdmi.h:89

References _isHaploid, _myProto, TProtoBDMI::getGenoFitnessDiplo(), and TProtoBDMI::getGenoFitnessHaplo().

◆ get_num_mut_diplo()

unsigned int TT_BDMI::get_num_mut_diplo ( unsigned int  loc)
inline
205{return (*_sequence[0])[loc]+(*_sequence[1])[loc];}

References _sequence.

Referenced by TTBDMI_SH::countAllele_diplo().

+ Here is the caller graph for this function:

◆ get_num_mut_haplo()

unsigned int TT_BDMI::get_num_mut_haplo ( unsigned int  loc)
inline
204{return (*_sequence[0])[loc];}

References _sequence.

Referenced by TTBDMI_SH::countAllele_haplo().

+ Here is the caller graph for this function:

◆ get_sequence()

virtual void ** TT_BDMI::get_sequence ( ) const
inlinevirtual

Implements TTrait.

220{return (void**)&_sequence[0];}

References _sequence.

◆ get_type()

virtual trait_t TT_BDMI::get_type ( ) const
inlinevirtual

Implements TTrait.

219{return _myProto->get_type();}
virtual trait_t get_type() const
Definition: ttbdmi.h:112

References _myProto, and TProtoBDMI::get_type().

◆ getValue()

virtual void * TT_BDMI::getValue ( ) const
inlinevirtual

Implements TTrait.

218{return (void*)&_phenotype;}

References _phenotype.

Referenced by show_up().

+ Here is the caller graph for this function:

◆ inherit()

virtual void TT_BDMI::inherit ( TTrait mother,
TTrait father 
)
inlinevirtual

Implements TTrait.

213{(this->* _inherit_func_ptr) (mother, father);}

References _inherit_func_ptr.

◆ inherit_diplo()

void TT_BDMI::inherit_diplo ( TTrait mother,
TTrait father 
)
431{
432 bitstring** mother_seq = (bitstring**)mother->get_sequence();
433 bitstring** father_seq = (bitstring**)father->get_sequence();
434
435 _myProto->inherit(FEM, _sequence[FEM], mother_seq);
436 _myProto->inherit(MAL, _sequence[MAL], father_seq);
437}
void inherit(sex_t SEX, bitstring *seq, bitstring **parent)
Definition: ttbdmi.cc:232
virtual void ** get_sequence() const =0
sequence accessor.
Non-template and faster implementation of std::bitset.
Definition: bitstring.h:56
@ FEM
Definition: types.h:37
@ MAL
Definition: types.h:37

References _myProto, _sequence, FEM, TTrait::get_sequence(), TProtoBDMI::inherit(), and MAL.

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

◆ inherit_haplo()

void TT_BDMI::inherit_haplo ( TTrait mother,
TTrait father 
)
442{
443 bitstring* gamete[2];
444 gamete[0] = (bitstring*)(mother->get_sequence()[0]);
445 gamete[1] = (bitstring*)(father->get_sequence()[0]);
446
447 _myProto->inherit(MAL, _sequence[0], &gamete[0]);
448}

References _myProto, _sequence, TTrait::get_sequence(), TProtoBDMI::inherit(), and MAL.

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

◆ init()

void TT_BDMI::init ( )
virtual

Implements TTrait.

373{
374 if(_sequence[0] != NULL) fatal("TT_BDMI::init::_sequence[0] is not NULL !\n");
375 if(!_isHaploid && _sequence[1] != NULL) fatal("TT_BDMI::init::_sequence[1] is not NULL !\n");
376
377 _sequence[0] = new bitstring(_nb_locus);
379}
void fatal(const char *str,...)
Definition: output.cc:96

References _isHaploid, _nb_locus, _sequence, and fatal().

Referenced by operator=(), and set_sequence().

+ Here is the caller graph for this function:

◆ init_sequence()

void TT_BDMI::init_sequence ( )
virtual

Implements TTrait.

404{
405 if(_sequence[0] == NULL) _sequence[0] = new bitstring(_nb_locus);
406
407 _sequence[0]->reset(); //sets all bits to 0
408
409 if(!_isHaploid){
410 if(_sequence[1] == NULL) _sequence[1] = new bitstring(_nb_locus);
411 _sequence[1]->reset();
412 }
413
414 if(_myProto->isInitSet()) {
415
416 for(unsigned int i = 0; i < _nb_locus; i++) {
418 _sequence[0]->set(i);
419
420 if( !_isHaploid )
422 _sequence[1]->set(i);
423 }
424 }
425
426}
static double Uniform()
Generates a random number from [0.0, 1.0[ uniformly distributed.
Definition: Uniform.h:125
double get_init_freq(unsigned int i)
Definition: ttbdmi.h:81
bool isInitSet()
Definition: ttbdmi.h:82
void reset()
Set all bits to 0.
Definition: bitstring.h:256
void set(size_t n)
Set a bit to 1.
Definition: bitstring.h:240

References _isHaploid, _myProto, _nb_locus, _sequence, TProtoBDMI::get_init_freq(), TProtoBDMI::isInitSet(), bitstring::reset(), bitstring::set(), and RAND::Uniform().

Referenced by LCE_Init_BDMI::init_value().

+ Here is the caller graph for this function:

◆ mutate()

virtual void TT_BDMI::mutate ( )
inlinevirtual

Implements TTrait.

214{(this->*_mutation_func_ptr)();}

References _mutation_func_ptr.

◆ mutate_diplo()

void TT_BDMI::mutate_diplo ( )
470{
471 unsigned int NbMut;
472
473 NbMut = (unsigned int)RAND::Poisson(_genomic_mut_rate);
474
475 while(NbMut != 0) {
476
478
479 NbMut--;
480 }
481}
static double Poisson(double mean)
From the Numerical Recieps.
Definition: Uniform.h:220
static bool RandBool()
Returns a random boolean.
Definition: Uniform.h:163
void flip(size_t n)
Flip the bit at n.
Definition: bitstring.h:243

References _genomic_mut_rate, _nb_locus, _sequence, bitstring::flip(), RAND::Poisson(), RAND::RandBool(), and RAND::Uniform().

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

◆ mutate_haplo()

void TT_BDMI::mutate_haplo ( )
454{
455 unsigned int NbMut;
456
457 NbMut = (unsigned int)RAND::Poisson(_genomic_mut_rate);
458
459 while(NbMut != 0) {
460
462
463 NbMut--;
464 }
465}

References _genomic_mut_rate, _nb_locus, _sequence, bitstring::flip(), RAND::Poisson(), and RAND::Uniform().

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

◆ operator!=()

bool TT_BDMI::operator!= ( const TTrait T)
virtual

Implements TTrait.

344{
345 if(!((*this) == T))
346 return true;
347 else
348 return false;
349}

◆ operator=()

TT_BDMI & TT_BDMI::operator= ( const TTrait T)
virtual

Implements TTrait.

302{
303 const TT_BDMI& TD = dynamic_cast<const TT_BDMI&> (T);
304 if(this != &TD) {
305
306 _nb_locus = TD._nb_locus;
307// _mut_rate = TD._mut_rate;
308// _recomb_rate = TD._recomb_rate;
309// _genomic_mut_rate = TD._genomic_mut_rate;
311// _inherit_func_ptr = TD._inherit_func_ptr;
312// _mutation_func_ptr = TD._mutation_func_ptr;
313// _viability_func_ptr = TD._viability_func_ptr;
314 //deallocate any previous _sequence memory:
315 reset();
316 //allocate _sequence memory:
317 init();
318 //copy _sequence:
319 _sequence[0]->copy(*TD._sequence[0]);
320 if(!_isHaploid) _sequence[1]->copy(*TD._sequence[1]);
321
322 set_value();
323 }
324 return *this;
325}
Definition: ttbdmi.h:134
virtual void set_value()
Definition: ttbdmi.h:217
virtual void init()
Definition: ttbdmi.cc:372
virtual void reset()
Definition: ttbdmi.cc:383
void copy(const bitstring &b)
Unchecked copy, assumes we have sames sizes.
Definition: bitstring.h:260

References _isHaploid, _nb_locus, _sequence, bitstring::copy(), init(), reset(), and set_value().

◆ operator==()

bool TT_BDMI::operator== ( const TTrait T)
virtual

Implements TTrait.

330{
331 if(_myProto->get_type().compare(T.get_type()) != 0) return false;
332
333 const TT_BDMI& TD = dynamic_cast<const TT_BDMI&> (T);
334 if(this != &TD) {
335 if(_nb_locus != TD._nb_locus) return false;
336 if(_isHaploid != TD._isHaploid) return false;
337 }
338 return true;
339}
virtual trait_t get_type() const =0
type accessor.

References _isHaploid, _myProto, _nb_locus, TProtoBDMI::get_type(), and TTrait::get_type().

◆ reset()

void TT_BDMI::reset ( )
virtual

Implements TTrait.

384{
385 if(_sequence[0] != NULL) delete _sequence[0];
386 if(!_isHaploid && _sequence[1] != NULL) delete _sequence[1];
387
388 _sequence[0] = NULL;
389 _sequence[1] = NULL;
390}

References _isHaploid, and _sequence.

Referenced by operator=(), and set_sequence().

+ Here is the caller graph for this function:

◆ retrieve_data()

bool TT_BDMI::retrieve_data ( BinaryStorageBuffer reader)
virtual

Implements StorableComponent.

563{
564 size_t wnb = _sequence[0]->nb_words();
565 size_t bytes = wnb * sizeof(bitstring::_ul);
566 bitstring::_ul *srce = new bitstring::_ul [wnb];
567
568 reader->read(srce, bytes);
569 _sequence[0]->set_data(srce,wnb);
570
571 if(!_isHaploid){
572 reader->read(srce, bytes);
573 _sequence[1]->set_data(srce,wnb);
574 }
575
576 delete [] srce;
577
578 return true;
579}
void read(void *out, unsigned int nb_bytes)
Definition: binarystoragebuffer.h:162
unsigned long _ul
Definition: bitstring.h:60
size_t nb_words()
Definition: bitstring.h:144
void set_data(_ul *srce, size_t nbwrd)
Copy bits from an array of unsigned long words.
Definition: bitstring.h:246

References _isHaploid, _sequence, bitstring::nb_words(), BinaryStorageBuffer::read(), and bitstring::set_data().

◆ set_allele_value()

void TT_BDMI::set_allele_value ( unsigned int  locus,
unsigned int  allele,
double  value 
)
virtual

Implements TTrait.

366{
367 _myProto->setGenoFitnessValue(locus, allele, value);
368}
void setGenoFitnessValue(unsigned int row, unsigned int geno, double value)
Definition: ttbdmi.h:100

References _myProto, and TProtoBDMI::setGenoFitnessValue().

◆ set_geno_rate()

void TT_BDMI::set_geno_rate ( double  val)
inline
178{_genomic_mut_rate = val;}

References _genomic_mut_rate.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_inherit_func_ptr()

void TT_BDMI::set_inherit_func_ptr ( void(TT_BDMI::*)(TTrait *, TTrait *)  theFunc)
inline
182 {_inherit_func_ptr = theFunc;}

References _inherit_func_ptr.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_isHaploid()

void TT_BDMI::set_isHaploid ( bool  val)
inline
180{_isHaploid = val;}

References _isHaploid.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_mut_rate()

void TT_BDMI::set_mut_rate ( double  val)
inline
177{_mut_rate = val;}

References _mut_rate.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_mutation_func_ptr()

void TT_BDMI::set_mutation_func_ptr ( void(TT_BDMI::*)(void)  theFunc)
inline
184 {_mutation_func_ptr = theFunc;}

References _mutation_func_ptr.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_nb_locus()

void TT_BDMI::set_nb_locus ( int  val)
inline
176{_nb_locus = val;}

References _nb_locus.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_proto()

void TT_BDMI::set_proto ( TProtoBDMI proto)
inline
188{_myProto = proto;}

References _myProto.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ set_recomb_rate()

void TT_BDMI::set_recomb_rate ( double  val)
inline
179{_recomb_rate = val;}

References _recomb_rate.

◆ set_sequence() [1/2]

void TT_BDMI::set_sequence ( bitstring **  seq)
395{
396 reset(); init();
397 _sequence[0]->copy(*seq[0]);
398 if(!_isHaploid) _sequence[1]->copy(*seq[1]);
399}

References _isHaploid, _sequence, bitstring::copy(), init(), and reset().

◆ set_sequence() [2/2]

virtual void TT_BDMI::set_sequence ( void **  seq)
inlinevirtual

Implements TTrait.

216{}

◆ set_trait()

virtual void * TT_BDMI::set_trait ( void *  value)
inlinevirtual

Implements TTrait.

215{return NULL;}

◆ set_value()

virtual void TT_BDMI::set_value ( )
inlinevirtual

Implements TTrait.

217{_phenotype = (this->*_viability_func_ptr)();}

References _phenotype, and _viability_func_ptr.

Referenced by LCE_Init_BDMI::init_value(), operator=(), and show_up().

+ Here is the caller graph for this function:

◆ set_viability_func_ptr()

void TT_BDMI::set_viability_func_ptr ( double(TT_BDMI::*)(void)  theFunc)
inline
186 {_viability_func_ptr = theFunc;}

References _viability_func_ptr.

Referenced by TProtoBDMI::hatch().

+ Here is the caller graph for this function:

◆ show_up()

void TT_BDMI::show_up ( )
virtual

Implements TTrait.

522{
523 set_value();
524 std::cout<<"\n Trait type: dmi"
525 <<"\n value: "<<*(double*)getValue()
526 <<"\n num loci: "<<_nb_locus
527 <<"\nfitness table: "<<endl;
529
530 cout<<"\n sequence: "<<endl;
531 cout<<"0: ";
532 for(unsigned int i = 0; i < _nb_locus && i < 64; i++)
533 cout<<(unsigned int)(*_sequence[0])[i];
534 cout<<endl;
535
536 if(!_isHaploid) {
537 cout<<"1: ";
538 for(unsigned int i = 0; i < _nb_locus && i < 64; i++)
539 cout<<(unsigned int)(*_sequence[1])[i];
540 }
541 cout<<endl;
542}
void showGenoTable(unsigned int nrows)
Definition: ttbdmi.cc:212
virtual void * getValue() const
Definition: ttbdmi.h:218

References _isHaploid, _myProto, _nb_locus, _sequence, getValue(), set_value(), and TProtoBDMI::showGenoTable().

◆ store_data()

void TT_BDMI::store_data ( BinaryStorageBuffer saver)
virtual

Implements StorableComponent.

547{
548 size_t wnb = _sequence[0]->nb_words();
549 size_t bytes = sizeof(bitstring::_ul);
550
551 for(size_t i = 0; i < wnb; i++)
552 saver->store(_sequence[0]->getword_atIdx(i), bytes);
553
554 if(!_isHaploid){
555 for(size_t i = 0; i < wnb; i++)
556 saver->store(_sequence[1]->getword_atIdx(i), bytes);
557 }
558}
void store(void *stream, unsigned int nb_bytes)
Definition: binarystoragebuffer.cc:16
_ul * getword_atIdx(size_t index)
Definition: bitstring.h:139

References _isHaploid, _sequence, bitstring::getword_atIdx(), bitstring::nb_words(), and BinaryStorageBuffer::store().

◆ viability_diplo()

double TT_BDMI::viability_diplo ( )
501{
502 unsigned int npair = _nb_locus/2;
503 double viab = 1;
504//cout << "\nTT_BDMI::viability_diplo\n";
505// cout << " sequence[0].size(): "<<(*_sequence[0]).size()
506// << " sequence[0].nb_words(): "<<(*_sequence[0]).nb_words()<<endl;
507// cout << " sequence[1].size(): "<<(*_sequence[1]).size()
508// << " sequence[1].nb_words(): "<<(*_sequence[1]).nb_words()<<endl;
509
510 for (unsigned int pair = 0, i = 0; pair < npair && i < _nb_locus; ++pair) {
511 viab *= 1 + _myProto->getGenoFitnessDiplo( pair , //locus number
512 _diploGenotCoding[ (*_sequence[0])[i] ][ (*_sequence[1])[i] ], //first locus
513 _diploGenotCoding[ (*_sequence[0])[i+1] ][ (*_sequence[1])[i+1] ]); //second locus
514 i += 2;
515 }
516 return viab;
517}
static unsigned int _diploGenotCoding[2][2]
Definition: ttbdmi.h:156

References _diploGenotCoding, _myProto, _nb_locus, _sequence, and TProtoBDMI::getGenoFitnessDiplo().

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

◆ viability_haplo()

double TT_BDMI::viability_haplo ( )
486{
487 unsigned int npair = _nb_locus/2;
488 double viab = 1;
489
490 for (unsigned int pair = 0, i = 0; pair < npair && i < _nb_locus; ++pair) {
491 viab *= 1 + _myProto->getGenoFitnessHaplo( pair ,
492 _haploGenotCoding[ (*_sequence[0])[i] ][ (*_sequence[0])[i+1] ]);
493 i += 2;
494 }
495 return viab;
496}
static unsigned int _haploGenotCoding[2][2]
Definition: ttbdmi.h:155

References _haploGenotCoding, _myProto, _nb_locus, _sequence, and TProtoBDMI::getGenoFitnessHaplo().

Referenced by TProtoBDMI::setParameters().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _diploGenotCoding

unsigned int TT_BDMI::_diploGenotCoding = {{0,1},{1,2}}
staticprivate

Referenced by viability_diplo().

◆ _genomic_mut_rate

double TT_BDMI::_genomic_mut_rate
private

◆ _haploGenotCoding

unsigned int TT_BDMI::_haploGenotCoding = {{0,1},{2,3}}
staticprivate

Referenced by viability_haplo().

◆ _inherit_func_ptr

void(TT_BDMI::* TT_BDMI::_inherit_func_ptr) (TTrait *, TTrait *)
private

Referenced by inherit(), and set_inherit_func_ptr().

◆ _isHaploid

◆ _mut_rate

double TT_BDMI::_mut_rate
private

Referenced by set_mut_rate().

◆ _mutation_func_ptr

void(TT_BDMI::* TT_BDMI::_mutation_func_ptr) (void)
private

Referenced by mutate(), and set_mutation_func_ptr().

◆ _myProto

◆ _nb_locus

◆ _phenotype

double TT_BDMI::_phenotype
private

Referenced by getValue(), and set_value().

◆ _recomb_rate

double TT_BDMI::_recomb_rate
private

Referenced by set_recomb_rate().

◆ _recomb_template

unsigned int* TT_BDMI::_recomb_template
staticprivate

◆ _rSites

unsigned int * TT_BDMI::_rSites
staticprivate

◆ _sequence

◆ _sites

unsigned char* TT_BDMI::_sites
staticprivate

◆ _viability_func_ptr

double(TT_BDMI::* TT_BDMI::_viability_func_ptr) (void)
private

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

Generated for Nemo v2.3.56 by  doxygen 1.9.0 -- Nemo is hosted on  Download Nemo

Locations of visitors to this page
Catalogued on GSR