diff options
author | trondeau | 2009-07-31 01:47:20 +0000 |
---|---|---|
committer | trondeau | 2009-07-31 01:47:20 +0000 |
commit | 482c0505920258680ba1105e272efcc95cbdb16d (patch) | |
tree | ee1f798bc66b892d63335262551853ef296ae438 /gnuradio-examples | |
parent | 9c31d118f7ad218d1dcd723562fe132138ab01d6 (diff) | |
download | gnuradio-482c0505920258680ba1105e272efcc95cbdb16d.tar.gz gnuradio-482c0505920258680ba1105e272efcc95cbdb16d.tar.bz2 gnuradio-482c0505920258680ba1105e272efcc95cbdb16d.zip |
Fixing bug in setting SNR
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11523 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_qt_loopback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-examples/python/digital/benchmark_qt_loopback.py b/gnuradio-examples/python/digital/benchmark_qt_loopback.py index cd77f0748..e43bffa26 100755 --- a/gnuradio-examples/python/digital/benchmark_qt_loopback.py +++ b/gnuradio-examples/python/digital/benchmark_qt_loopback.py @@ -279,7 +279,7 @@ class my_top_block(gr.top_block): def get_noise_voltage(self, SNR): snr = 10.0**(SNR/10.0) power_in_signal = abs(self._tx_amplitude)**2 - noise_power = power_in_signal/SNR + noise_power = power_in_signal/snr noise_voltage = math.sqrt(noise_power) return noise_voltage |