-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.h
52 lines (42 loc) · 872 Bytes
/
const.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
#ifndef _CONST_H_
#define _CONST_H_
#include <cmath>
#define MIN(x,y) (((x)<=(y))?(x):(y))
#define MAX(x,y) (((x)>=(y))?(x):(y))
#define dB2linear(x) (pow(10.0,x/10.0))
#define dBm2linear(x) (pow(10.0, (x- 30)/10.0))
#define linear2dB(x) (10*log10(x))
#define linear2dBm(x) (10*log10( x * 1000 ))
const double PI = 4 * atan(1.);
const double INITIAL_POWER = 1. ;
const double SPEED_LIGHT = 299800000. ; // [m/s]
const int MAX_NUM_CLUSTERS = 24 ;
const int MAX_NUM_RAYS = 20 ;
const double ANGLE_3dB_h = 65 ; // 79
const double ANGLE_3dB_v = 65 ; // 15
const double ANGLE_tilt = 10 ;
enum SCENARIO_TYPE
{
INDOOR_HOTSPOT,
URBAN_MACRO,
URBAN_MICRO,
RURAL_MACRO,
SUBURBAN_MACRO,
OUTDOOR_2_INDOOR
};
enum LOS_TYPE
{
LOS,
NLOS,
RANDOM
};
typedef struct
{
double x;
double y;
} LOCATION;
typedef struct
{
double PL ;
} LOGGING_POINT ;
#endif