A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
snr-to-block-error-rate-record.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007,2008, 2009 INRIA, UDcast
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 * Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
18 * <amine.ismail@udcast.com>
19 */
20
21#ifndef SNR_TO_BLOCK_ERROR_RATE_RECORD_H
22#define SNR_TO_BLOCK_ERROR_RATE_RECORD_H
23
24namespace ns3
25{
26
35{
36 public:
46 SNRToBlockErrorRateRecord(double snrValue,
47 double bitErrorRate,
48 double BlockErrorRate,
49 double sigma2,
50 double I1,
51 double I2);
53
57 double GetSNRValue() const;
61 double GetBitErrorRate() const;
65 double GetBlockErrorRate() const;
69 double GetSigma2() const;
73 double GetI1() const;
77 double GetI2() const;
83
88 void SetSNRValue(double snrValue);
93 void SetBitErrorRate(double bitErrorRate);
98 void SetBlockErrorRate(double blockErrorRate);
103 void SetI1(double i1);
108 void SetI2(double i2);
109
110 private:
111 double m_snrValue;
114 double m_sigma2;
115 double m_i1;
116 double m_i2;
117};
118
119} // namespace ns3
120
121#endif /* SNR_TO_BLOCK_ERROR_RATE_RECORD_H */
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
void SetBlockErrorRate(double blockErrorRate)
set the BlcER value
Every class exported by the ns3 library is enclosed in the ns3 namespace.