-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding AWGN to a signal #94
Comments
Hi @adeeb10abbas, Could you be more precise on your issue. Is this a question? Do you report a bug? Do you ask for a feature? |
Yes sorry about that. I am asking for a feature! Thanks! |
Did you have a look to the SISOFlatChannel class? It should do what you ask for. There are several variants possible, like using a complex signal but this snippet should be enough to start. from commpy.channels import SISOFlatChannel
from commpy.utilities import signal_power
import numpy as np
channel = SISOFlatChannel()
noiseless_signal = np.random.choice((-1, 1), 10) # Use your own signal here
channel.set_SNR_dB(10, Es=signal_power(noiseless_signal)) # I compute the signal power but if you know it, you can just specified the right argument
noisy_signal = channel.propagate(noiseless_signal) Is it OK for you? If so, I let you close this issue. |
Yes, this works but partially. I am looking for something that can add noise to a signal that already has some amount of noise. |
Replace |
Adding Gaussian noise to a signal of a specific SNR. The signal may or may not have noise already
The text was updated successfully, but these errors were encountered: