A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
snr-to-block-error-rate-record.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007,2008, 2009 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 * <amine.ismail@udcast.com>
8 */
9
11
12#include "ns3/assert.h"
13#include "ns3/simulator.h"
14
15namespace ns3
16{
17
19 double bitErrorRate,
20 double blockErrorRate,
21 double sigma2,
22 double I1,
23 double I2)
24{
25 m_snrValue = snrValue;
26 m_bitErrorRate = bitErrorRate;
27 m_blockErrorRate = blockErrorRate;
28 m_sigma2 = sigma2;
29 m_i1 = I1;
30 m_i2 = I2;
31}
32
43
44double
49
59
60double
65
66double
71
72double
77
78double
80{
81 return m_i1;
82}
83
84double
86{
87 return m_i2;
88}
89
90void
92{
93 m_snrValue = snrValue;
94}
95
96void
98{
99 m_bitErrorRate = bitErrorRate;
100}
101
102void
104{
105 m_blockErrorRate = blockErrorRate;
106}
107
108void
110{
111 m_i1 = i1;
112}
113
114void
116{
117 m_i2 = i2;
118}
119
120} // namespace ns3
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
double m_i1
The lower boundary of the confidence interval.
void SetSNRValue(double snrValue)
set the snr value
void SetBitErrorRate(double bitErrorRate)
set the BER value
void SetI2(double i2)
set the upper boundary of the confidence interval
double m_i2
The upper boundary of the confidence interval.
SNRToBlockErrorRateRecord * Copy() const
copy a record
void SetI1(double i1)
set the lower boundary of the confidence interval
SNRToBlockErrorRateRecord(double snrValue, double bitErrorRate, double BlockErrorRate, double sigma2, double I1, double I2)
creates a record and sets its values
void SetBlockErrorRate(double blockErrorRate)
set the BlcER value
Every class exported by the ns3 library is enclosed in the ns3 namespace.