A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
error-rate-tables.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 University of Washington
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Authors: Rohan Patidar <rpatidar@uw.edu>
18
* Sébastien Deronne <sebastien.deronne@gmail.com>
19
* Sian Jin <sianjin@uw.edu>
20
*/
21
22
// This file contains table data for the TableBasedErrorRateModel. For more
23
// information on the source of this data, see wifi module documentation.
24
25
#ifndef ERROR_RATE_TABLES_H
26
#define ERROR_RATE_TABLES_H
27
28
#include <cstdint>
29
#include <utility>
30
#include <vector>
31
32
namespace
ns3
33
{
34
35
const
uint16_t
ERROR_TABLE_BCC_SMALL_FRAME_SIZE
=
36
32;
//!< reference size (bytes) of small frames for BCC
37
const
uint16_t
ERROR_TABLE_BCC_LARGE_FRAME_SIZE
=
38
1458;
//!< reference size (bytes) of large frames for BCC
39
const
uint16_t
ERROR_TABLE_LDPC_FRAME_SIZE
= 1458;
//!< reference size (bytes) for LDPC
40
const
uint8_t
ERROR_TABLE_BCC_MAX_NUM_MCS
= 10;
//!< maximum number of MCSs for BCC
41
const
uint8_t
ERROR_TABLE_LDPC_MAX_NUM_MCS
= 12;
//!< maximum number of MCSs for LDPC
42
43
/// Table of SNR (dB) and PER pairs
44
typedef
std::vector<std::pair<
double
/* SNR (dB) */
,
double
/* PER */
>>
SnrPerTable
;
45
46
/// AWGN error table for BCC with reference size of 32 bytes
47
extern
const
SnrPerTable
AwgnErrorTableBcc32
[
ERROR_TABLE_BCC_MAX_NUM_MCS
];
48
49
/// AWGN error table for BCC with reference size of 1458 bytes
50
extern
const
SnrPerTable
AwgnErrorTableBcc1458
[
ERROR_TABLE_BCC_MAX_NUM_MCS
];
51
52
/// AWGN error table for LDPC with reference size of 1458 bytes
53
extern
const
SnrPerTable
AwgnErrorTableLdpc1458
[
ERROR_TABLE_LDPC_MAX_NUM_MCS
];
54
55
}
// namespace ns3
56
57
#endif
/* ERROR_RATE_TABLES_H */
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SnrPerTable
std::vector< std::pair< double, double > > SnrPerTable
Table of SNR (dB) and PER pairs.
Definition:
error-rate-tables.h:44
ns3::AwgnErrorTableLdpc1458
const SnrPerTable AwgnErrorTableLdpc1458[ERROR_TABLE_LDPC_MAX_NUM_MCS]
AWGN error table for LDPC with reference size of 1458 bytes.
Definition:
error-rate-tables.cc:368
ns3::AwgnErrorTableBcc1458
const SnrPerTable AwgnErrorTableBcc1458[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 1458 bytes.
Definition:
error-rate-tables.cc:220
ns3::ERROR_TABLE_BCC_MAX_NUM_MCS
const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS
maximum number of MCSs for BCC
Definition:
error-rate-tables.h:40
ns3::ERROR_TABLE_LDPC_MAX_NUM_MCS
const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS
maximum number of MCSs for LDPC
Definition:
error-rate-tables.h:41
ns3::ERROR_TABLE_BCC_LARGE_FRAME_SIZE
const uint16_t ERROR_TABLE_BCC_LARGE_FRAME_SIZE
reference size (bytes) of large frames for BCC
Definition:
error-rate-tables.h:37
ns3::ERROR_TABLE_BCC_SMALL_FRAME_SIZE
const uint16_t ERROR_TABLE_BCC_SMALL_FRAME_SIZE
reference size (bytes) of small frames for BCC
Definition:
error-rate-tables.h:35
ns3::ERROR_TABLE_LDPC_FRAME_SIZE
const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE
reference size (bytes) for LDPC
Definition:
error-rate-tables.h:39
ns3::AwgnErrorTableBcc32
const SnrPerTable AwgnErrorTableBcc32[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 32 bytes.
Definition:
error-rate-tables.cc:31
src
wifi
model
reference
error-rate-tables.h
Generated on Tue May 28 2024 23:40:28 for ns-3 by
1.9.6