forked from YangKai-NEU/TED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe_header.h
64 lines (51 loc) · 1.05 KB
/
e_header.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __EHEADER_H__
#define __EHEADER_H__
#include <iostream>
#include <string>
using namespace std;
/*
* The parameters in the graph
*/
static string EDGE_PATH = "";
static string NODE_PATH = "";
static string GEO_PATH = "";
/*
* The threshold int l-coding
*/
static double THRESHOLD_VALUE = 1.0;
/*
* The line's length in the next table
*/
static int LINE_LENGTH = 0;
/*
* The next table's path
*/
static string NEXT_PATH = "";
/*
* The time recording file's path
*/
static string TIME_FILE = "";
/*
* The depth of the partitioin index
*/
static int DIVID_NUM = 6;
/*
* The number of entry of graph in pcoding
*/
static int ENTRY_NUM = 3;
/*
* The radius of earth, which can be used in the GPS distance function
*/
const double EARTH_RADIUS = 6378137.0;
/*
* The distance funtion
* such as GPSDistance, EuclideanDistance, ManhattanDistance, ChebyshevDistance,
* and so on
*/
#define DISTANCE_FUNCTION EuclideanDistance
/*
* Map table to due the binary
*/
unsigned char MAPTABLE[8] = {128, 64, 32, 16, 8, 4, 2, 1};
static string query_result_file_path="";
#endif