Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/12/07 21:04
Read: times


 
#144517 - The application is...
Responding to: ???'s previous message
I have to generate noise and add it to a digital encoded signal and decode this signal.
the noise must be AWGN (Addtive White Gaussian Noise). So to generate this noise, I use Rayleigh-distributed random variable R and a uniform random variable U
in C I wrote:

U = (float) lrand48() / RAND_MAX;
if (U == 1.0) U = 0.999999999;
R = sigma * sqrt(-2.0*log(1.0 - U));
U = (float) lrand48() / RAND_MAX;
if (U == 1.0) U = 0.999999999;
mean + R*cos(2.0*PI*U);


where mean is the mean of noise and sigma the noise variance. lrand48() generate positive long integers uniformly distributed over the interval [0,2^31-1).

I found this method in "Contemporary Communication Systems USING MATLAB(R)" by John G. Proakis and Masoud Salehi.
It works with C (I've done many many tests) and want to make it work on a 8051 based board.

So it's all about generating AWGN.

List of 25 messages in thread
TopicAuthorDate
HOWTO generate a uniformly-distributed random nu            01/01/70 00:00      
   how much code/data/idata/xdata space can you...            01/01/70 00:00      
      I can wait till evening            01/01/70 00:00      
      LFSR            01/01/70 00:00      
         OK but            01/01/70 00:00      
            there is no such thing            01/01/70 00:00      
               event triggered Timer reading            01/01/70 00:00      
                  no, well            01/01/70 00:00      
            LFSRs generally suffer from the "bad seed" problem            01/01/70 00:00      
               Maximal-Length LFSR?            01/01/70 00:00      
                  uniformity is not the only requirement on a pRNG..            01/01/70 00:00      
   most rng's            01/01/70 00:00      
      hummm            01/01/70 00:00      
         pseudorandom is NOT random            01/01/70 00:00      
            A Dilbert            01/01/70 00:00      
   Easy way to have it ???            01/01/70 00:00      
      block cipher, in chaining mode...            01/01/70 00:00      
      on uniformity of pseudo- or real-random            01/01/70 00:00      
         what's xtea prng RANGE ?            01/01/70 00:00      
            its not a dedicated pRNG algorithm....            01/01/70 00:00      
               random float ??            01/01/70 00:00      
                  tell us what is the application            01/01/70 00:00      
                     The application is...            01/01/70 00:00      
                        take any 32 bits...            01/01/70 00:00      
                           OK            01/01/70 00:00      

Back to Subject List