-
Notifications
You must be signed in to change notification settings - Fork 7
/
indiv.h
35 lines (31 loc) · 855 Bytes
/
indiv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef INDIV_H
#define INDIV_H
#include <vector>
class Indiv {
public:
Indiv(int maxloci);
Indiv(const Indiv& orig);
virtual ~Indiv();
void setAllele(int l, int m, int allele);
void setSamplePopln(int currPoplnID);
void setMigrantAge(unsigned int a);
void setMigrantPopln(unsigned int a);
void setLogL(double l);
void pushMissing(unsigned int j);
int getAllele(int l, int m);
int getMissingGenotype(long unsigned int i);
unsigned int getSamplePopln();
unsigned int getMigrantPopln();
unsigned int getMigrantAge();
unsigned int getMissingGenSize();
const std::vector<int>& getMissingVector() const;
double getLogL();
private:
std::vector<std::vector<int> > genotype;
std::vector<int> missingGenotypes;
unsigned int samplePopln;
unsigned int migrantPopln;
unsigned int migrantAge;
double logL;
};
#endif