#include "ns3/buildings-module.h"#include "ns3/core-module.h"#include "ns3/mobility-module.h"#include "ns3/network-module.h"#include "ns3/spectrum-signal-parameters.h"#include "ns3/three-gpp-channel-model.h"#include "ns3/three-gpp-propagation-loss-model.h"#include "ns3/three-gpp-spectrum-propagation-loss-model.h"#include "ns3/uniform-planar-array.h"#include <algorithm>#include <array>#include <fstream>#include <limits>Go to the source code of this file.
Classes | |
| struct | ChannelMetrics |
| Metrics for the first three channel components and clusters. More... | |
| struct | ComputeSnrParams |
| A structure that holds the parameters for the ComputeSnr function. More... | |
Functions | |
| static void | ComputeSnr (const ComputeSnrParams ¶ms) |
| Computes the SNR. | |
| static void | CreateQuasiOmniBf (Ptr< PhasedArrayModel > antenna) |
| Set QuasiOmni beamforming vector to the antenna array. | |
| static ChannelMetrics | GetChannelMetrics (const ComputeSnrParams ¶ms) |
| Get metrics for the first three channel components and clusters. | |
| static double | PowerRatioToDb (double power) |
| Convert a non-negative linear power ratio to dB. | |
| void | PrintGnuplottableBuildingListToFile (std::string filename) |
| Generates a GNU-plottable file representing the buildings deployed in the scenario. | |
Variables | |
| static Ptr< ChannelConditionModel > | g_condModel |
| the ChannelConditionModel object | |
| static Ptr< ThreeGppPropagationLossModel > | g_propagationLossModel |
| the log component | |
| static Ptr< ThreeGppSpectrumPropagationLossModel > | g_spectrumLossModel |
| the SpectrumPropagationLossModel object | |
|
static |
Computes the SNR.
| params | A structure that holds a bunch of parameters needed by ComputeSnr function to calculate the average SNR |
Definition at line 288 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
References ChannelMetrics::aoa, ChannelMetrics::clusterPowerDb, ChannelMetrics::componentPowerDb, ns3::Create(), ChannelMetrics::delay, g_condModel, g_propagationLossModel, g_spectrumLossModel, GetChannelMetrics(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), ns3::Sum(), and ChannelMetrics::zoa.
|
static |
Set QuasiOmni beamforming vector to the antenna array.
| Antenna module | the antenna array to which will be set quasi omni beamforming vector |
Definition at line 235 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
|
static |
Get metrics for the first three channel components and clusters.
The channel-component power is computed as the mean squared magnitude of the coefficients in each channel-matrix component (squared Frobenius norm normalized by the number of TX/RX antenna-element pairs). In LOS, component 0 therefore includes the deterministic LOS contribution coherently combined with the strongest stochastic cluster by the channel model.
The cluster power, delay, AoA, and ZoA are taken directly from the channel parameters. These quantities retain their cluster-level definition and are used for the cluster-based spatial-consistency metrics.
| params | the objects used to obtain the channel and channel parameters |
Definition at line 159 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
References ns3::MatrixBasedChannelModel::AOA_INDEX, ns3::DynamicCast(), NS_ABORT_MSG_IF, PowerRatioToDb(), and ns3::MatrixBasedChannelModel::ZOA_INDEX.
Referenced by ComputeSnr().
Convert a non-negative linear power ratio to dB.
| power | the linear power ratio |
Definition at line 135 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
Referenced by GetChannelMetrics().
| void PrintGnuplottableBuildingListToFile | ( | std::string | filename | ) |
Generates a GNU-plottable file representing the buildings deployed in the scenario.
| filename | the name of the output file |
Definition at line 342 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
References ns3::BuildingList::Begin(), ns3::BuildingList::End(), NS_LOG_ERROR, ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.
|
static |
the ChannelConditionModel object
Definition at line 94 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
Referenced by ComputeSnr().
|
static |
the log component
the PropagationLossModel object
Definition at line 90 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
Referenced by ComputeSnr().
|
static |
the SpectrumPropagationLossModel object
Definition at line 92 of file three-gpp-spatiotemporal-channel-consistency-example.cc.
Referenced by ComputeSnr().