randomness

goT
Go4Expert Member
14Apr2006,08:39   #1
goT's Avatar
int Xdata[100] = {100};
How to add Guassian noise with variance Var to Xdata?
.
Team Leader
14Apr2006,09:13   #2
coderzone's Avatar
Can you clarify a bit more on what you want to be doing with the variable and what is Var ...
Go4Expert Founder
14Apr2006,09:15   #3
shabbir's Avatar
Please read Before you make a query thread so that you know what you are asking can be understood by the other people.
goT
Go4Expert Member
14Apr2006,12:00   #4
goT's Avatar
maybe to print it to screen or display it. Var is variance = 0.8, for example.
Go4Expert Founder
14Apr2006,13:35   #5
shabbir's Avatar
How to Generate White Gaussian Noise probably can help you. What I found there is
Code:
   X=0
   for i = 1 to N
      U = uniform()
      X = X + U
   end
uniform is uniform random number generator between 0 and 1.