Revision as of 08:00, 22 October 2008 by Cgrush (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

okay, so following Seraj and implementing problem 1(b), I get the following for a Gaussian RV in C:

(ln(1-drand48())/(-0.5))^.5*cos(drand48())

Where the whole part in front of the cosine is the square root of an exponential RV (lambda = 0.5); which was obtained from a continuous RV over [0,1] (represented as the drand48() parameter) and using 1(b) as a guideline for obtaining such a RV.

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn