-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/new_genetics' into trans…
…loc_new_genetics_merge Resolved multiple conflicts, which still need to be tested: CMakeLists.txt Cell.cpp Community.cpp Community.h Genome.h Individual.cpp Landscape.cpp Landscape.h Model.cpp Model.h Parameters.h Population.cpp Population.h
- Loading branch information
Showing
46 changed files
with
5,989 additions
and
4,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef ALLELEH | ||
#define ALLELEH | ||
|
||
class Allele { | ||
const int id; | ||
const float value; | ||
const float dominance; | ||
inline static int counter = 0; // track nb alleles to set unique ID for each allele | ||
public: | ||
Allele(float alleleValue, float alleleDominance) : value(alleleValue), dominance(alleleDominance), id(counter) { ++counter; } | ||
~Allele() {} | ||
float getAlleleValue() const { return value; }; | ||
float getDominanceCoef() const { return dominance; }; | ||
int getId() const { return id; } | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.