diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-06-15 15:29:12 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-10-15 10:40:24 -0400 |
commit | 23aeb427a87d926a6825ca38894523539cbcc5c5 (patch) | |
tree | 9e4f48d16b4ab446157211dfe1cfbe251105ec00 /gr-qtgui/lib/ber_sink_b_impl.cc | |
parent | fd599db99de30da872ab5b2e59fa5434d5751fc9 (diff) |
qtgui: fixes calculation of BPSK BER curve.
Factor of 2 off; this is likely due to a change in the complex noise
generators a little while ago.
Diffstat (limited to 'gr-qtgui/lib/ber_sink_b_impl.cc')
-rw-r--r-- | gr-qtgui/lib/ber_sink_b_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/lib/ber_sink_b_impl.cc b/gr-qtgui/lib/ber_sink_b_impl.cc index 61dec2573a..eb3aa14597 100644 --- a/gr-qtgui/lib/ber_sink_b_impl.cc +++ b/gr-qtgui/lib/ber_sink_b_impl.cc @@ -90,7 +90,7 @@ namespace gr { for(size_t i = 0; i < esnos.size(); i++) { double e = pow(10.0, esnos[i]/10.0); d_esno_buffers[curves][i] = esnos[i]; - d_ber_buffers[curves][i] = log10(boost::math::erfc(sqrt(e))); + d_ber_buffers[curves][i] = log10(0.5*boost::math::erfc(sqrt(e))); } |