#include <DimensionalSnir.h>
◆ DimensionalSnir()
◆ computeMax()
| double inet::physicallayer::DimensionalSnir::computeMax |
( |
| ) |
const |
|
protectedvirtual |
58 const DimensionalNoise *dimensionalNoise = check_and_cast<const DimensionalNoise *>(
noise);
59 const DimensionalReception *dimensionalReception = check_and_cast<const DimensionalReception *>(
reception);
60 EV_DEBUG <<
"Reception power begin " << endl;
61 EV_DEBUG << *dimensionalReception->getPower() << endl;
62 EV_DEBUG <<
"Reception power end" << endl;
63 auto noisePower = dimensionalNoise->getPower();
64 auto receptionPower = dimensionalReception->getPower();
65 auto snir = receptionPower->divide(noisePower);
68 Hz centerFrequency = dimensionalReception->getCenterFrequency();
69 Hz bandwidth = dimensionalReception->getBandwidth();
70 Point<simsec, Hz> startPoint(startTime, centerFrequency - bandwidth / 2);
71 Point<simsec, Hz> endPoint(endTime, centerFrequency + bandwidth / 2);
72 EV_TRACE <<
"SNIR begin " << endl;
73 EV_TRACE << *snir << endl;
74 EV_TRACE <<
"SNIR end" << endl;
75 double maxSNIR = snir->getMax(Interval<simsec, Hz>(startPoint, endPoint, 0b1, 0b0, 0b0));
Referenced by getMax().
◆ computeMean()
| double inet::physicallayer::DimensionalSnir::computeMean |
( |
| ) |
const |
|
protectedvirtual |
83 const DimensionalNoise *dimensionalNoise = check_and_cast<const DimensionalNoise *>(
noise);
84 const DimensionalReception *dimensionalReception = check_and_cast<const DimensionalReception *>(
reception);
85 EV_TRACE <<
"Reception power begin " << endl;
86 EV_TRACE << *dimensionalReception->getPower() << endl;
87 EV_TRACE <<
"Reception power end" << endl;
88 auto noisePower = dimensionalNoise->getPower();
89 auto receptionPower = dimensionalReception->getPower();
90 auto snir = receptionPower->divide(noisePower);
93 Hz centerFrequency = dimensionalReception->getCenterFrequency();
94 Hz bandwidth = dimensionalReception->getBandwidth();
95 Point<simsec, Hz> startPoint(startTime, centerFrequency - bandwidth / 2);
96 Point<simsec, Hz> endPoint(endTime, centerFrequency + bandwidth / 2);
97 EV_TRACE <<
"SNIR begin " << endl;
98 EV_TRACE << *snir << endl;
99 EV_TRACE <<
"SNIR end" << endl;
100 double meanSNIR = snir->getMean(Interval<simsec, Hz>(startPoint, endPoint, 0b1, 0b0, 0b0));
Referenced by getMean().
◆ computeMin()
| double inet::physicallayer::DimensionalSnir::computeMin |
( |
| ) |
const |
|
protectedvirtual |
33 const DimensionalNoise *dimensionalNoise = check_and_cast<const DimensionalNoise *>(
noise);
34 const DimensionalReception *dimensionalReception = check_and_cast<const DimensionalReception *>(
reception);
35 EV_TRACE <<
"Reception power begin " << endl;
36 EV_TRACE << *dimensionalReception->getPower() << endl;
37 EV_TRACE <<
"Reception power end" << endl;
38 auto noisePower = dimensionalNoise->getPower();
39 auto receptionPower = dimensionalReception->getPower();
40 auto snir = receptionPower->divide(noisePower);
43 Hz centerFrequency = dimensionalReception->getCenterFrequency();
44 Hz bandwidth = dimensionalReception->getBandwidth();
45 Point<simsec, Hz> startPoint(startTime, centerFrequency - bandwidth / 2);
46 Point<simsec, Hz> endPoint(endTime, centerFrequency + bandwidth / 2);
47 EV_TRACE <<
"SNIR begin " << endl;
48 EV_TRACE << *snir << endl;
49 EV_TRACE <<
"SNIR end" << endl;
50 double minSNIR = snir->getMin(Interval<simsec, Hz>(startPoint, endPoint, 0b1, 0b0, 0b0));
Referenced by getMin().
◆ getMax()
| double inet::physicallayer::DimensionalSnir::getMax |
( |
| ) |
const |
|
overridevirtual |
◆ getMean()
| double inet::physicallayer::DimensionalSnir::getMean |
( |
| ) |
const |
|
overridevirtual |
◆ getMin()
| double inet::physicallayer::DimensionalSnir::getMin |
( |
| ) |
const |
|
overridevirtual |
◆ printToStream()
| std::ostream & inet::physicallayer::DimensionalSnir::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
◆ maxSNIR
| double inet::physicallayer::DimensionalSnir::maxSNIR |
|
mutableprotected |
◆ meanSNIR
| double inet::physicallayer::DimensionalSnir::meanSNIR |
|
mutableprotected |
◆ minSNIR
| double inet::physicallayer::DimensionalSnir::minSNIR |
|
mutableprotected |
The documentation for this class was generated from the following files: