Skip to content
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

Method for adding noise to a signal #377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SebastianPoell
Copy link
Contributor

@SebastianPoell SebastianPoell commented Aug 9, 2018

Changes proposed in this pull request

Sometimes you might want to simulate noisy environments, e.g. for testing an algorithm's robustness against noise. Therefore I implemented a short method for adding Additive White Gaussian Noise (AWGN) to a signal. The strength of the noise can be specified by a Signal-to-noise ratio (SNR).

Signal without noise:
signal_without_noise

Signal with noise (SNR=2):
signal_with_noise

Thanks to @superbock for the tip to use a fixed random seed for testing!

@SebastianPoell SebastianPoell changed the title [WIP] Method for adding noise to a signal Method for adding noise to a signal Dec 6, 2018
@SebastianPoell SebastianPoell force-pushed the add_noise_to_signal branch 4 times, most recently from a4003a0 to 799ca05 Compare December 7, 2018 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant