Fixed [0, 1] and [-1, 1] issue; comments; stopping simulation after n bit errors

This commit is contained in:
2022-11-07 00:32:31 +01:00
parent 2c16e2c2a3
commit 74ee1cc4db
5 changed files with 22 additions and 12 deletions

View File

@@ -0,0 +1 @@
"""This package contains unit tests."""

View File

@@ -20,6 +20,7 @@ class CountBitErrorsTestCase(unittest.TestCase):
self.assertEqual(utility.count_bit_errors(d3, y_hat3), 4)
# TODO: Is this correct?
class NoiseAmpFromSNRTestCase(unittest.TestCase):
"""Test case for noise amplitude calculation."""
def test_get_noise_amp_from_SNR(self):