21 #ifndef NIST_ERROR_RATE_MODEL_H 22 #define NIST_ERROR_RATE_MODEL_H 68 double CalculatePe (
double p, uint8_t bValue)
const;
92 double GetQamBer (uint16_t constellationSize,
double snr)
const;
102 double GetFecBpskBer (
double snr, uint64_t nbits, uint8_t bValue)
const;
112 double GetFecQpskBer (
double snr, uint64_t nbits, uint8_t bValue)
const;
123 double GetFecQamBer (uint16_t constellationSize,
double snr, uint64_t nbits, uint8_t bValue)
const;
double GetQamBer(uint16_t constellationSize, double snr) const
Return BER of QAM for a given constellation size at the given SNR.
static TypeId GetTypeId(void)
Get the type ID.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiCodeRate
This enumeration defines the various convolutional coding rates used for the OFDM transmission modes ...
double GetFecQpskBer(double snr, uint64_t nbits, uint8_t bValue) const
Return BER of QPSK at the given SNR after applying FEC.
double GetFecQamBer(uint16_t constellationSize, double snr, uint64_t nbits, uint8_t bValue) const
Return BER of QAM for a given constellation size at the given SNR after applying FEC.
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
the interface for Wifi's error models
double GetFecBpskBer(double snr, uint64_t nbits, uint8_t bValue) const
Return BER of BPSK at the given SNR after applying FEC.
uint8_t GetBValue(WifiCodeRate codeRate) const
Return the bValue such that coding rate = bValue / (bValue + 1).
A model for the error rate for different modulations.
double CalculatePe(double p, uint8_t bValue) const
Return the coded BER for the given p and b.
double DoGetChunkSuccessRate(WifiMode mode, WifiTxVector txVector, double snr, uint64_t nbits) const
A pure virtual method that must be implemented in the subclass.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double GetQpskBer(double snr) const
Return BER of QPSK at the given SNR.
double GetBpskBer(double snr) const
Return BER of BPSK at the given SNR.
a unique identifier for an interface.