-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPathSimParams.h
47 lines (37 loc) · 927 Bytes
/
PathSimParams.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
#ifndef PATHSIM_PARAMS_HPP
#define PATHSIM_PARAMS_HPP
#include <string>
#include <vector>
namespace PathSim {
struct PathParams
{
// Delay of the path in ms, 0 to 30ms.
double delay { 0. };
// Raileigh spread
double spread { 0. };
// Frequency offset in Hz
double offset { 0. };
};
struct NoiseParams
{
// Is white gaussian noise generator enabled?
bool has_awgn { false };
// Signal to noise (SNR) value, dB
double snr { 10. };
};
struct PathSimParams
{
// Description of the profile
std::string title;
// Name of the profile on command line
std::string cmdline_param;
std::vector<PathParams> paths;
NoiseParams noise;
};
extern const std::vector<PathSimParams>& default_params();
struct State {
double m_SigRMS { 0. };
double m_NoiseRMS { 0. };
};
} // namespace PathSim
#endif // PATHSIM_PARAMS_HPP