A Discrete-Event Network Simulator
API
dsss-error-rate-model.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 The Boeing Company
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: Gary Pei <guangyu.pei@boeing.com>
18 */
19
20#ifndef DSSS_ERROR_RATE_MODEL_H
21#define DSSS_ERROR_RATE_MODEL_H
22
23#ifdef HAVE_GSL
24#include <gsl/gsl_cdf.h>
25#include <gsl/gsl_integration.h>
26#include <gsl/gsl_math.h>
27#include <gsl/gsl_sf_bessel.h>
28#endif
29
30#include <cstdint>
31
32namespace ns3
33{
34
35#ifdef HAVE_GSL
39typedef struct FunctionParameterType
40{
41 double beta;
42 double n;
43} FunctionParameters;
44
53double IntegralFunction(double x, void* params);
54#endif
55
80{
81 public:
89 static double DqpskFunction(double x);
98 static double GetDsssDbpskSuccessRate(double sinr, uint64_t nbits);
107 static double GetDsssDqpskSuccessRate(double sinr, uint64_t nbits);
117 static double GetDsssDqpskCck5_5SuccessRate(double sinr, uint64_t nbits);
127 static double GetDsssDqpskCck11SuccessRate(double sinr, uint64_t nbits);
128#ifdef HAVE_GSL
129 static double SymbolErrorProb16Cck(double e2);
130 static double SymbolErrorProb256Cck(double e1);
131#else
132
133 protected:
135 static const double WLAN_SIR_PERFECT;
137 static const double WLAN_SIR_IMPOSSIBLE;
138#endif
139};
140
141} // namespace ns3
142
143#endif /* DSSS_ERROR_RATE_MODEL_H */
an implementation of DSSS error rate model
static double GetDsssDqpskSuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK.
static const double WLAN_SIR_PERFECT
WLAN perfect.
static double GetDsssDbpskSuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential BPSK.
static double GetDsssDqpskCck5_5SuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK for 5.5Mbps data rate.
static double GetDsssDqpskCck11SuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK for 11Mbps data rate.
static const double WLAN_SIR_IMPOSSIBLE
WLAN impossible.
static double DqpskFunction(double x)
A function DQPSK.
Every class exported by the ns3 library is enclosed in the ns3 namespace.