Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add gaussian noise python


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

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #add #gaussian #noise #python
ADD COMMENT
Topic
Name
7+7 =