您可以生成噪声阵列,并将其添加到信号中
import numpy as npnoise = 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

您可以生成噪声阵列,并将其添加到信号中
import numpy as npnoise = 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