-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPEG.h
50 lines (38 loc) · 797 Bytes
/
PEG.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PEG_H_
#define PEG_H_
#include "DEG.h"
#include <stdlib.h>
using namespace std;
class PEG: public DEG {
private:
double limit; // Send or not? Gaussian distribution, if go beyond "limit" -> i send the packet
double t_avg, t_var;
public:
virtual ~PEG() {
}
;
PEG(double lower, double upper, double realFPH, double estimFPH,
double avg, double var, double t_avg, double t_var, bool mode,
int distribution, double limit, char* name
);
bool needToSend(int i);
double getLimit() const {
return limit;
}
void setLimit(double limit) {
this->limit = limit;
}
double getAvg() const {
return t_avg;
}
void setAvg(double avg) {
t_avg = avg;
}
double getVar() const {
return t_var;
}
void setVar(double var) {
t_var = var;
}
};
#endif /* PEG_H_ */