What is the formula to calculate gaussian noise, given we have variance and mean? I am trying to search google for formula but i am unable to find any much relevant result. If for example i have mean as "11" and variance as "18". Then how i can use these two value for calculating/generating a noise signal from gauss distribution??which formula should i use,where i can put these values of variance and mean,and then i will get noise signal
$\begingroup$
$\endgroup$
2
In MATLAB, you can do it that way:
>> nsamples = 1e9;
mu = 11;
sigma_squared = 18;
x = mu + sqrt(sigma_squared)*randn(nsamples,1);
mean(x)
ans =
10.9998
var(x)
ans =
17.9994
Edit: link https://www.mathworks.com/help/matlab/math/random-numbers-with-specific-mean-and-variance.html
$\begingroup$
$\endgroup$
8
tx
= Transmission vector
noise=sqrt(sigma2/2)*randn(size(tx));
-
-
-
$\begingroup$ can you please share link/refrence of this formula?? $\endgroup$ – engr Feb 9 '20 at 5:51
-
$\begingroup$ no mention/use of mean in this formula? will the factor of mean will be redundant while calculating noise in this case? $\endgroup$ – engr Feb 9 '20 at 5:52
-
$\begingroup$ What is transmission vector?how we can get/find its value? $\endgroup$ – engr Feb 9 '20 at 5:53