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
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
10
#include "
snr-to-block-error-rate-record.h
"
11
12
#include "ns3/assert.h"
13
#include "ns3/simulator.h"
14
15
namespace
ns3
16
{
17
18
SNRToBlockErrorRateRecord::SNRToBlockErrorRateRecord
(
double
snrValue,
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
33
SNRToBlockErrorRateRecord
*
34
SNRToBlockErrorRateRecord::Copy
()
const
35
{
36
return
(
new
SNRToBlockErrorRateRecord
(
m_snrValue
,
37
m_bitErrorRate
,
38
m_blockErrorRate
,
39
m_sigma2
,
40
m_i1
,
41
m_i2
));
42
}
43
44
double
45
SNRToBlockErrorRateRecord::GetSNRValue
()
const
46
{
47
return
m_snrValue
;
48
}
49
50
SNRToBlockErrorRateRecord::~SNRToBlockErrorRateRecord
()
51
{
52
m_snrValue
= 0;
53
m_bitErrorRate
= 0;
54
m_blockErrorRate
= 0;
55
m_sigma2
= 0;
56
m_i1
= 0;
57
m_i2
= 0;
58
}
59
60
double
61
SNRToBlockErrorRateRecord::GetBitErrorRate
()
const
62
{
63
return
m_bitErrorRate
;
64
}
65
66
double
67
SNRToBlockErrorRateRecord::GetBlockErrorRate
()
const
68
{
69
return
m_blockErrorRate
;
70
}
71
72
double
73
SNRToBlockErrorRateRecord::GetSigma2
()
const
74
{
75
return
m_sigma2
;
76
}
77
78
double
79
SNRToBlockErrorRateRecord::GetI1
()
const
80
{
81
return
m_i1
;
82
}
83
84
double
85
SNRToBlockErrorRateRecord::GetI2
()
const
86
{
87
return
m_i2
;
88
}
89
90
void
91
SNRToBlockErrorRateRecord::SetSNRValue
(
double
snrValue)
92
{
93
m_snrValue
= snrValue;
94
}
95
96
void
97
SNRToBlockErrorRateRecord::SetBitErrorRate
(
double
bitErrorRate)
98
{
99
m_bitErrorRate
= bitErrorRate;
100
}
101
102
void
103
SNRToBlockErrorRateRecord::SetBlockErrorRate
(
double
blockErrorRate)
104
{
105
m_blockErrorRate
= blockErrorRate;
106
}
107
108
void
109
SNRToBlockErrorRateRecord::SetI1
(
double
i1)
110
{
111
m_i1
= i1;
112
}
113
114
void
115
SNRToBlockErrorRateRecord::SetI2
(
double
i2)
116
{
117
m_i2
= i2;
118
}
119
120
}
// namespace ns3
ns3::SNRToBlockErrorRateRecord
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
Definition
snr-to-block-error-rate-record.h:24
ns3::SNRToBlockErrorRateRecord::GetSNRValue
double GetSNRValue() const
Definition
snr-to-block-error-rate-record.cc:45
ns3::SNRToBlockErrorRateRecord::GetI2
double GetI2() const
Definition
snr-to-block-error-rate-record.cc:85
ns3::SNRToBlockErrorRateRecord::m_i1
double m_i1
The lower boundary of the confidence interval.
Definition
snr-to-block-error-rate-record.h:104
ns3::SNRToBlockErrorRateRecord::GetBlockErrorRate
double GetBlockErrorRate() const
Definition
snr-to-block-error-rate-record.cc:67
ns3::SNRToBlockErrorRateRecord::m_snrValue
double m_snrValue
SNR value.
Definition
snr-to-block-error-rate-record.h:100
ns3::SNRToBlockErrorRateRecord::SetSNRValue
void SetSNRValue(double snrValue)
set the snr value
Definition
snr-to-block-error-rate-record.cc:91
ns3::SNRToBlockErrorRateRecord::m_bitErrorRate
double m_bitErrorRate
bit error rate
Definition
snr-to-block-error-rate-record.h:101
ns3::SNRToBlockErrorRateRecord::m_blockErrorRate
double m_blockErrorRate
block error rate
Definition
snr-to-block-error-rate-record.h:102
ns3::SNRToBlockErrorRateRecord::SetBitErrorRate
void SetBitErrorRate(double bitErrorRate)
set the BER value
Definition
snr-to-block-error-rate-record.cc:97
ns3::SNRToBlockErrorRateRecord::~SNRToBlockErrorRateRecord
~SNRToBlockErrorRateRecord()
Definition
snr-to-block-error-rate-record.cc:50
ns3::SNRToBlockErrorRateRecord::GetBitErrorRate
double GetBitErrorRate() const
Definition
snr-to-block-error-rate-record.cc:61
ns3::SNRToBlockErrorRateRecord::SetI2
void SetI2(double i2)
set the upper boundary of the confidence interval
Definition
snr-to-block-error-rate-record.cc:115
ns3::SNRToBlockErrorRateRecord::m_i2
double m_i2
The upper boundary of the confidence interval.
Definition
snr-to-block-error-rate-record.h:105
ns3::SNRToBlockErrorRateRecord::GetI1
double GetI1() const
Definition
snr-to-block-error-rate-record.cc:79
ns3::SNRToBlockErrorRateRecord::Copy
SNRToBlockErrorRateRecord * Copy() const
copy a record
Definition
snr-to-block-error-rate-record.cc:34
ns3::SNRToBlockErrorRateRecord::GetSigma2
double GetSigma2() const
Definition
snr-to-block-error-rate-record.cc:73
ns3::SNRToBlockErrorRateRecord::m_sigma2
double m_sigma2
sigma2
Definition
snr-to-block-error-rate-record.h:103
ns3::SNRToBlockErrorRateRecord::SetI1
void SetI1(double i1)
set the lower boundary of the confidence interval
Definition
snr-to-block-error-rate-record.cc:109
ns3::SNRToBlockErrorRateRecord::SNRToBlockErrorRateRecord
SNRToBlockErrorRateRecord(double snrValue, double bitErrorRate, double BlockErrorRate, double sigma2, double I1, double I2)
creates a record and sets its values
Definition
snr-to-block-error-rate-record.cc:18
ns3::SNRToBlockErrorRateRecord::SetBlockErrorRate
void SetBlockErrorRate(double blockErrorRate)
set the BlcER value
Definition
snr-to-block-error-rate-record.cc:103
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
snr-to-block-error-rate-record.h
src
wimax
model
snr-to-block-error-rate-record.cc
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0