#include <yans-error-rate-model.h>
Public Member Functions | |
YansErrorRateModel () | |
virtual double | GetChunkSuccessRate (WifiMode mode, double snr, uint32_t nbits) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::YansErrorRateModel. | |
Private Member Functions | |
double | Log2 (double val) const |
double | GetBpskBer (double snr, uint32_t signalSpread, uint32_t phyRate) const |
double | GetQamBer (double snr, unsigned int m, uint32_t signalSpread, uint32_t phyRate) const |
uint32_t | Factorial (uint32_t k) const |
double | Binomial (uint32_t k, double p, uint32_t n) const |
double | CalculatePdOdd (double ber, unsigned int d) const |
double | CalculatePdEven (double ber, unsigned int d) const |
double | CalculatePd (double ber, unsigned int d) const |
double | GetFecBpskBer (double snr, double nbits, uint32_t signalSpread, uint32_t phyRate, uint32_t dFree, uint32_t adFree) const |
double | GetFecQamBer (double snr, uint32_t nbits, uint32_t signalSpread, uint32_t phyRate, uint32_t m, uint32_t dfree, uint32_t adFree, uint32_t adFreePlusOne) const |
Definition at line 29 of file yans-error-rate-model.h.
ns3::YansErrorRateModel::YansErrorRateModel | ( | ) |
Definition at line 40 of file yans-error-rate-model.cc.
double ns3::YansErrorRateModel::Binomial | ( | uint32_t | k, | |
double | p, | |||
uint32_t | n | |||
) | const [private] |
Definition at line 80 of file yans-error-rate-model.cc.
References Factorial().
Referenced by CalculatePdEven(), and CalculatePdOdd().
double ns3::YansErrorRateModel::CalculatePd | ( | double | ber, | |
unsigned int | d | |||
) | const [private] |
Definition at line 117 of file yans-error-rate-model.cc.
References CalculatePdEven(), and CalculatePdOdd().
Referenced by GetFecBpskBer(), and GetFecQamBer().
double ns3::YansErrorRateModel::CalculatePdEven | ( | double | ber, | |
unsigned int | d | |||
) | const [private] |
Definition at line 100 of file yans-error-rate-model.cc.
References Binomial(), and NS_ASSERT.
Referenced by CalculatePd().
double ns3::YansErrorRateModel::CalculatePdOdd | ( | double | ber, | |
unsigned int | d | |||
) | const [private] |
Definition at line 86 of file yans-error-rate-model.cc.
References Binomial(), and NS_ASSERT.
Referenced by CalculatePd().
uint32_t ns3::YansErrorRateModel::Factorial | ( | uint32_t | k | ) | const [private] |
Definition at line 69 of file yans-error-rate-model.cc.
References anonymous_namespace{rng-stream.cc}::fact.
Referenced by Binomial().
double ns3::YansErrorRateModel::GetBpskBer | ( | double | snr, | |
uint32_t | signalSpread, | |||
uint32_t | phyRate | |||
) | const [private] |
Definition at line 49 of file yans-error-rate-model.cc.
References NS_LOG_INFO.
Referenced by GetFecBpskBer().
double ns3::YansErrorRateModel::GetChunkSuccessRate | ( | WifiMode | mode, | |
double | snr, | |||
uint32_t | nbits | |||
) | const [virtual] |
Implements ns3::ErrorRateModel.
Definition at line 172 of file yans-error-rate-model.cc.
References ns3::WifiPhy::Get12mba(), ns3::WifiPhy::Get18mba(), ns3::WifiPhy::Get24mba(), ns3::WifiPhy::Get36mba(), ns3::WifiPhy::Get48mba(), ns3::WifiPhy::Get54mba(), ns3::WifiPhy::Get6mba(), ns3::WifiPhy::Get9mba(), ns3::WifiMode::GetBandwidth(), GetFecBpskBer(), GetFecQamBer(), and ns3::WifiMode::GetPhyRate().
double ns3::YansErrorRateModel::GetFecBpskBer | ( | double | snr, | |
double | nbits, | |||
uint32_t | signalSpread, | |||
uint32_t | phyRate, | |||
uint32_t | dFree, | |||
uint32_t | adFree | |||
) | const [private] |
Definition at line 132 of file yans-error-rate-model.cc.
References CalculatePd(), and GetBpskBer().
Referenced by GetChunkSuccessRate().
double ns3::YansErrorRateModel::GetFecQamBer | ( | double | snr, | |
uint32_t | nbits, | |||
uint32_t | signalSpread, | |||
uint32_t | phyRate, | |||
uint32_t | m, | |||
uint32_t | dfree, | |||
uint32_t | adFree, | |||
uint32_t | adFreePlusOne | |||
) | const [private] |
Definition at line 149 of file yans-error-rate-model.cc.
References CalculatePd(), and GetQamBer().
Referenced by GetChunkSuccessRate().
double ns3::YansErrorRateModel::GetQamBer | ( | double | snr, | |
unsigned int | m, | |||
uint32_t | signalSpread, | |||
uint32_t | phyRate | |||
) | const [private] |
Definition at line 58 of file yans-error-rate-model.cc.
References Log2(), and NS_LOG_INFO.
Referenced by GetFecQamBer().
TypeId ns3::YansErrorRateModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::YansErrorRateModel.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::ErrorRateModel.
Definition at line 31 of file yans-error-rate-model.cc.
References ns3::TypeId::SetParent().
double ns3::YansErrorRateModel::Log2 | ( | double | val | ) | const [private] |
Definition at line 44 of file yans-error-rate-model.cc.
Referenced by GetQamBer().