Bugzilla – Bug 895
SimpleOfdmWimaxPhy SNR computation
Last modified: 2010-04-30 13:16:52 UTC
line 336 in simple-ofdm-wimax-phy.cc: double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000) / 2.303; leads to integer division before the log is taken, since GetBandwidth () returns an integer. The argument to log() needs to be turned into a floating point number, such as changing the divisor to 1000000000.0
(In reply to comment #0) > > The argument to log() needs to be turned into a floating point number, such as > changing the divisor to 1000000000.0 (more precisely, the division needs to be turned into floating point)
(In reply to comment #1) > (In reply to comment #0) > > > > > The argument to log() needs to be turned into a floating point number, such as > > changing the divisor to 1000000000.0 > > (more precisely, the division needs to be turned into floating point) Amine, +1 on this one? I can only push a change for this as late as Saturday morning.
+1
changeset 533be42b3c7f