diff options
author | Clayton Smith <argilo@gmail.com> | 2024-01-07 00:44:29 -0500 |
---|---|---|
committer | Jeff Long <willcode4@gmail.com> | 2024-01-07 09:27:50 -0500 |
commit | 91b2d7026408d7b2b547c8edd39b45f326e48571 (patch) | |
tree | 86d972999d58880615b799c878f31b09c7e6459a | |
parent | pmt: Check length before calling memcmp (diff) | |
download | gnuradio-91b2d7026408d7b2b547c8edd39b45f326e48571.tar.xz gnuradio-91b2d7026408d7b2b547c8edd39b45f326e48571.zip |
fec: Fix BPSK AWGN formula
Signed-off-by: Clayton Smith <argilo@gmail.com>
(cherry picked from commit 148a10913df03180e01bb63713c256683b5ad783)
Signed-off-by: Jeff Long <willcode4@gmail.com>
-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 a8b62bedb..2397e98f1 100644 --- a/gr-qtgui/lib/ber_sink_b_impl.cc +++ b/gr-qtgui/lib/ber_sink_b_impl.cc @@ -78,7 +78,7 @@ ber_sink_b_impl::ber_sink_b_impl(std::vector<float> esnos, 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] = std::log10(0.5 * std::erf(std::sqrt(e))); + d_ber_buffers[curves][i] = std::log10(0.5 * std::erfc(std::sqrt(e))); } |