46 for (
int i = -4; i < 13 + 7; i++)
49 bi.
fl = 2407.0e6 + i * 5.0e6;
50 bi.
fh = 2407.0e6 + (i + 1) * 5.0e6;
51 bi.
fc = (bi.
fl + bi.
fh) / 2;
54 g_WifiSpectrumModel5Mhz = Create<SpectrumModel> (bands);
81 double txPowerDensity = txPower / 20e6;
86 (*txPsd)[channel - 1] = txPowerDensity * 1e-4;
87 (*txPsd)[
channel] = txPowerDensity * 1e-4;
88 (*txPsd)[channel + 1] = txPowerDensity * 0.0015849;
89 (*txPsd)[channel + 2] = txPowerDensity * 0.0015849;
90 (*txPsd)[channel + 3] = txPowerDensity;
91 (*txPsd)[channel + 4] = txPowerDensity;
92 (*txPsd)[channel + 5] = txPowerDensity;
93 (*txPsd)[channel + 6] = txPowerDensity;
94 (*txPsd)[channel + 7] = txPowerDensity * 0.0015849;
95 (*txPsd)[channel + 8] = txPowerDensity * 0.0015849;
96 (*txPsd)[channel + 9] = txPowerDensity * 1e-4;
97 (*txPsd)[channel + 10] = txPowerDensity * 1e-4;
111 (*rf)[channel + 3] = 1;
112 (*rf)[channel + 4] = 1;
113 (*rf)[channel + 5] = 1;
114 (*rf)[channel + 6] = 1;
static class ns3::WifiSpectrumModel5MhzInitializer g_WifiSpectrumModel5MhzInitializerInstance
initialization instance for WifiSpectrumModel5Mhz
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
std::vector< BandInfo > Bands
Container of BandInfo.
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double txPower, uint32_t channel)
Creates a SpectrumValue instance which represents the TX Power Spectral Density of a wifi device corr...
double fc
center frequency
virtual ~WifiSpectrumValue5MhzFactory()
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double fl
lower limit of subband
virtual Ptr< SpectrumValue > CreateConstant(double psd)
Creates a SpectrumValue instance which has a constant value for all frequencies.
virtual Ptr< SpectrumValue > CreateRfFilter(uint32_t channel)
Creates a pectrumValue instance which represents the frequency response of the RF filter which is use...
WifiSpectrumModel5MhzInitializer()
virtual ~WifiSpectrumValueHelper()
Static class to initialize the values for the Wi-Fi spectrum model.
double fh
upper limit of subband
static Ptr< SpectrumModel > g_WifiSpectrumModel5Mhz
The Wi-Fi spectrum model.
The building block of a SpectrumModel.