-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.h
More file actions
110 lines (91 loc) · 3.47 KB
/
Event.h
File metadata and controls
110 lines (91 loc) · 3.47 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef EVENT_H
#define EVENT_H
#include <string>
#include "Point.h"
#include <vector>
#include <math.h>
class Event
{
public:
Event();
void setEventId(std::string _eventId);
std::string getEventId();
void setFalseEvent(bool _isEventFalse);
bool checkIfEventFalse();
void setEventLocation(Point _location);
Point getEventLocation();
void setEventWidth(int _eventWidth);
int getNoOfPositiveRatings();
void setNoOfPositiveRatings(int _noOfPositiveRatings);
int getNoOfNegativeRatings();
void setNoOfNegativeRatings(int _noOfNegativeRatings);
int getNoOfUncertainRatings();
void setNoOfUncertainRatings(int _noOfUncertainRatings);
int getNoOfRatings();
double getPercOfPositiveRatings();
double getPercOfNegativeRatings();
double getPercOfUncertainRatings();
double getWeightForUncertainty();
double getWeightForBelief();
void setEventTypeId(int _eventTypeId);
int getEventTypeId();
void setEpochNum(int _epochNum);
int getEpochNum();
int getEventStartTime();
int getEventEndTime();
double calculateBelief();
double calculateDisBelief();
double calculateUncertainty();
void calculateOldWeightForUncertainty(double uncertainWeightMax, double uncertainA, double uncertainB);
void calculateWeightForUncertainty(double uncertainWeightMax, double uncertainA, double uncertainB, int thresholdN, double phi);
void calculateWeightForBelief(double beliefWeightMax, double beliefA, double beliefB);
void setQOIWeight(double qoi, double alpha, double beta, double lambda, double referencePoint);
void calculateQOI(int noOfUsers, double alpha, double beta, double lambda, double referencePoint);
double getQOI();
double getJosangQOI();
double getQOIWeight();
void setAggregateReports(int aggReports);
int getAggregateReports();
void setAggregateReputation(double aggReputation);
double getAggregateReputation();
void setHistoricProb(double historicProb);
void setHistoricProspectProb(double historicProspectProb);
void setEventConfidence(double eventConfidence);
void setEventUtilityConfidence(double eventUtilityConfidence);
double getHistoricProb();
double getHistoricProspectProb();
double getEventConfidence();
double getEventUtilityConfidence();
void setEventCPTPublish(std::string eventPublish);
std::string getEventCPTPublish();
void setEventEUTPublish(std::string eventPublish);
std::string getEventEUTPublish();
protected:
private:
std::string eventId;
bool isEventFalse;
Point location;
int eventWidth;
int eventTypeId;
int epochNum;
int noOfPositiveRatings;
int noOfNegativeRatings;
int noOfUncertainRatings;
double belief;
double disBelief;
double uncertainty;
double qoi;
double josangQOI;
double uncertainWeight;
double beliefWeight;
double qoiWeight;
int aggregateReports;
double aggregateReputation;
double historicProb;
double historicProspectProb;
double eventConfidence;
double eventUtilityConfidence;
std::string eventCPTPublished;
std::string eventEUTPublished;
};
#endif // EVENT_H