SINR calculation

97 views
Skip to first unread message

Luca Tartarini

unread,
Nov 19, 2015, 1:05:00 PM11/19/15
to ns-3-users
Hi everyone, 

I was wondering how the SINR is calculated in the InterferenceHelper class: https://www.nsnam.org/doxygen/interference-helper_8cc_source.html#l00237

In particular, how is generated the argument "noiseInterference" in the following method:

236 double
237 InterferenceHelper::CalculateSnr (double signal, double noiseInterference, uint32_t channelWidth) const
238 {
239  //thermal noise at 290K in J/s = W
240  static const double BOLTZMANN = 1.3803e-23;
241  //Nt is the power of thermal noise in W
242  double Nt = BOLTZMANN * 290.0 * channelWidth * 1000000;
243  //receiver noise Floor (W) which accounts for thermal noise and non-idealities of the receiver
244  double noiseFloor = m_noiseFigure * Nt;
245  double noise = noiseFloor + noiseInterference;
246  double snr = signal / noise; //linear scale
247  NS_LOG_DEBUG ("bandwidth(MHz)=" << channelWidth << ", signal(W)= " << signal << ", noise(W)=" << noiseFloor << ", interference(W)=" << noiseInterference << ", snr(linear)=" << snr);
248  return snr;
249 }

Cheers,

Luca Tartarini

Gmail

unread,
Nov 19, 2015, 1:15:04 PM11/19/15
to ns-3-...@googlegroups.com
Did you check interference-helper.cc?
You will see there how it gets calculated.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Luca Tartarini

unread,
Nov 23, 2015, 2:48:12 PM11/23/15
to ns-3-users
Dear Sebastien,

Thanks for the reply, actually that piece of code is inside the interference-helper.cc but I stil can not understand how the arguments is the CalculateSnr function are retrieved.

Best,

Luca Tartarini
Reply all
Reply to author
Forward
0 new messages