A Discrete-Event Network Simulator
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
32namespace ns3
33{
34
36 32; //!< reference size (bytes) of small frames for BCC
38 1458; //!< reference size (bytes) of large frames for BCC
39const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE = 1458; //!< reference size (bytes) for LDPC
40const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS = 10; //!< maximum number of MCSs for BCC
41const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS = 12; //!< maximum number of MCSs for LDPC
42
43/// Table of SNR (dB) and PER pairs
44typedef std::vector<std::pair<double /* SNR (dB) */, double /* PER */>> SnrPerTable;
45
46/// AWGN error table for BCC with reference size of 32 bytes
48
49/// AWGN error table for BCC with reference size of 1458 bytes
51
52/// AWGN error table for LDPC with reference size of 1458 bytes
54
55} // namespace ns3
56
57#endif /* ERROR_RATE_TABLES_H */
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< std::pair< double, double > > SnrPerTable
Table of SNR (dB) and PER pairs.
const SnrPerTable AwgnErrorTableLdpc1458[ERROR_TABLE_LDPC_MAX_NUM_MCS]
AWGN error table for LDPC with reference size of 1458 bytes.
const SnrPerTable AwgnErrorTableBcc1458[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 1458 bytes.
const uint8_t ERROR_TABLE_BCC_MAX_NUM_MCS
maximum number of MCSs for BCC
const uint8_t ERROR_TABLE_LDPC_MAX_NUM_MCS
maximum number of MCSs for LDPC
const uint16_t ERROR_TABLE_BCC_LARGE_FRAME_SIZE
reference size (bytes) of large frames for BCC
const uint16_t ERROR_TABLE_BCC_SMALL_FRAME_SIZE
reference size (bytes) of small frames for BCC
const uint16_t ERROR_TABLE_LDPC_FRAME_SIZE
reference size (bytes) for LDPC
const SnrPerTable AwgnErrorTableBcc32[ERROR_TABLE_BCC_MAX_NUM_MCS]
AWGN error table for BCC with reference size of 32 bytes.