-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataPoint.h
More file actions
34 lines (29 loc) · 746 Bytes
/
DataPoint.h
File metadata and controls
34 lines (29 loc) · 746 Bytes
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
#include <vector>
using namespace std;
const int DIME_NUM = 2;
class DataPoint
{
private:
unsigned long dpID;
double dimension[DIME_NUM];
long clusterId;
bool isKey;
bool visited;
vector<unsigned long> arrivalPoints;
vector<unsigned long> toloratePoints;
public:
DataPoint();
DataPoint(unsigned long dpID, double* dimension, bool isKey);
unsigned long GetDpId();
void SetDpId(unsigned long dpID);
double* GetDimension();
void SetDimension(double* dimension);
bool IsKey();
void SetKey(bool isKey);
bool isVisited();
void SetVisited(bool visited);
long GetClusterId();
void SetClusterId(long classId);
vector<unsigned long>& GetArrivalPoints();
vector<unsigned long>& GetToloratePoints();
};