Calculating waveform power in spectrum module

35 views
Skip to first unread message

Varun Reddy

unread,
Sep 23, 2017, 5:14:19 PM9/23/17
to ns-3-users
Hey everyone,

In the example program - /examples/wireless/wifi-spectrum-per-interference.cc, what is the significance of the following statements -

      Ptr<SpectrumValue> wgPsd = Create<SpectrumValue> (SpectrumModelWifi5180MHz);
     
*wgPsd = waveformPower / (100 * 180000);
      NS_LOG_INFO
("wgPsd : " << *wgPsd << " integrated power: " << Integral (*(GetPointer (wgPsd))));

What is the reason for dividing the waveformPower by (100*180000)? I've tried going through literature and tutorial guides, but couldn't find the exact reason for this.

I've attached the source file in this thread. Thanks!

Varun


wifi-spectrum-per-interference.cc
Reply all
Reply to author
Forward
0 new messages