#include <DsssOqpsk16Modulation.h>
|
| | DsssOqpsk16Modulation () |
| |
| virtual | ~DsssOqpsk16Modulation () |
| |
| double | calculateBER (double snir, Hz bandwidth, bps bitrate) const override |
| | Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
|
| |
| double | calculateSER (double snir, Hz bandwidth, bps bitrate) const override |
| | Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
|
| |
| | ApskModulationBase (const std::vector< ApskSymbol > *constellation) |
| |
| virtual std::ostream & | printToStream (std::ostream &stream, int level, int evFlags=0) const override |
| | Prints this object to the provided output stream. More...
|
| |
| virtual const std::vector< ApskSymbol > * | getConstellation () const |
| |
| virtual unsigned int | getConstellationSize () const override |
| |
| virtual unsigned int | getCodeWordSize () const override |
| |
| virtual const ApskSymbol * | mapToConstellationDiagram (const ShortBitVector &symbol) const |
| |
| virtual ShortBitVector | demapToBitRepresentation (const ApskSymbol *symbol) const |
| |
| virtual | ~IPrintableObject () |
| |
| virtual std::string | printToString () const |
| |
| virtual std::string | printToString (int level, int evFlags=0) const |
| |
| virtual std::string | getInfoStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDetailStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDebugStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getTraceStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getCompleteStringRepresentation (int evFlags=0) const |
| |
◆ DsssOqpsk16Modulation()
| inet::physicallayer::DsssOqpsk16Modulation::DsssOqpsk16Modulation |
( |
| ) |
|
◆ ~DsssOqpsk16Modulation()
| inet::physicallayer::DsssOqpsk16Modulation::~DsssOqpsk16Modulation |
( |
| ) |
|
|
virtual |
◆ calculateBER()
| double inet::physicallayer::DsssOqpsk16Modulation::calculateBER |
( |
double |
snir, |
|
|
Hz |
bandwidth, |
|
|
bps |
bitrate |
|
) |
| const |
|
overridevirtual |
Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.
Implements inet::physicallayer::IModulation.
38 ASSERT(bandwidth >=
MHz(2));
39 ASSERT(bitrate ==
kbps(250));
41 const double dSNRFct = 20.0 * snir;
52 for (;
k < 8;
k += 2) {
54 dSumK +=
math::n_choose_k(16,
k) * (exp(dSNRFct * (1.0 /
k - 1.0)) + exp(dSNRFct * (1.0 / (16 -
k) - 1.0)));
60 for (
k = 3;
k < 8;
k += 2) {
62 dSumK -=
math::n_choose_k(16,
k) * (exp(dSNRFct * (1.0 /
k - 1.0)) + exp(dSNRFct * (1.0 / (16 -
k) - 1.0)));
72 double ber = (8.0 / 15) * (1.0 / 16) * dSumK;
73 ASSERT(0.0 <= ber && ber <= 1.0);
◆ calculateSER()
| double inet::physicallayer::DsssOqpsk16Modulation::calculateSER |
( |
double |
snir, |
|
|
Hz |
bandwidth, |
|
|
bps |
bitrate |
|
) |
| const |
|
overridevirtual |
Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.
Implements inet::physicallayer::IModulation.
◆ singleton
The documentation for this class was generated from the following files: