adding noise to a signal in python

前端 未结 7 706
你的背包
你的背包 2020-12-12 09:55

I want to add some random noise to some 100 bin signal that I am simulating in Python - to make it more realistic.

On a basic level, my first thought was to go bin b

相关标签:
7条回答
  • 2020-12-12 10:46

    You can generate a noise array, and add it to your signal

    import numpy as np
    
    noise = np.random.normal(0,1,100)
    
    # 0 is the mean of the normal distribution you are choosing from
    # 1 is the standard deviation of the normal distribution
    # 100 is the number of elements you get in array noise
    
    0 讨论(0)
提交回复
热议问题