commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/02: digital: Fixed berawgn example to fo


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/02: digital: Fixed berawgn example to follow recent noise power change
Date: Wed, 5 Aug 2015 20:53:37 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 427787f4bfe2685b601f5526ef2adb2fdfa13573
Author: Martin Braun <address@hidden>
Date:   Wed Aug 5 12:48:53 2015 -0700

    digital: Fixed berawgn example to follow recent noise power change
---
 gr-digital/examples/berawgn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-digital/examples/berawgn.py b/gr-digital/examples/berawgn.py
index f1b2319..c47d991 100755
--- a/gr-digital/examples/berawgn.py
+++ b/gr-digital/examples/berawgn.py
@@ -106,8 +106,8 @@ class BERAWGNSimu(gr.top_block):
         self.connect(src, (ber, 1))
 
     def EbN0_to_noise_voltage(self, EbN0):
-        """ Converts Eb/N0 to a single-sided noise voltage (assuming unit 
symbol power) """
-        return 1.0 / math.sqrt(2.0 * self.const.bits_per_symbol() * 
10**(float(EbN0)/10))
+        """ Converts Eb/N0 to a complex noise voltage (assuming unit symbol 
power) """
+        return 1.0 / math.sqrt(self.const.bits_per_symbol() * 
10**(float(EbN0)/10))
 
 
 def simulate_ber(EbN0):



reply via email to

[Prev in Thread] Current Thread [Next in Thread]