Made main.py work with the new simulation functions
This commit is contained in:
@@ -12,8 +12,6 @@ def get_noise_variance_from_SNR(SNR: float, n: int, k: int) -> float:
|
||||
:param k: Length of a dataword of the used code
|
||||
:return: Variance of the noise
|
||||
"""
|
||||
# noise_amp = (1 / np.sqrt(SNR_linear)) * signal_amp
|
||||
|
||||
SNR_linear = 10 ** (SNR / 10)
|
||||
variance = 1 / (2 * (k/n) * SNR_linear)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user