Docsity

Generating Random Vectors & Linear Combinations in EE640 Stochastic Systems Project 1 - Pr, Study Guides, Projects, Research of Electrical and Electronics Engineering

Toggle sidebar
bg1
EE640 STOCHASTIC SYSTEMS
Spring, 2006
COMPUTER PROJECT 1
PART A: SYNTHESIS (March 21, 2006)
Let N= 512:
1. Uniform pseudo-random numbers. Generate 6 random vectors, each with a different
seed. The vectors are all N2×1 where each element is uniformly distributed between
0 and 1. Each element is independent from the others. Mathematically refer to the
vectors as:
u1, u2, u3, u4, u5, u6,(1)
2. Prove the parametric transformation equations for converting from a uniform distri-
bution to a gaussian distribution are correct.
gi[2i+ 1] = p−2 ln ui[2n+ 1] cos 2πui[2n+ 2] (2)
gi[2i+ 2] = p−2 ln ui[2n+ 1] sin 2πui[2n+ 2] (3)
where n= 0,1,2. . . (N2/2−1)
3. Generate six N2×1 gaussian random vectors from the associated vectors in part (1).
Use the transformation developed in (2). Generate them with a 0 mean and unity
variance and store as you did in (1). Refer to them as
g1, g2, g3, g 4, g5, g6,(4)
4. Linear combinations of r.v.s. Generate five N2×1 vectors such that
s1=u1+u2
s2=u1+u2+u3
s3=u1+u2+u3+u4(5)
s4=u1+u2+u3+u4+u5
s5=u1+u2+u3+u4+u5+u6
5. Change gifrom lexicographical form to 2D matrix Gi. Put the first Nelements in
gito the first row of Gi, the N−2Nelements in gito the second row of Giand so
on. The size of giis N2×1 and the size of Giis N×N.
6. Letting N= 128: Use the 12 training images from Project 1-S: Supplemental “SYN-
THESIS OF DETERMINISTIC SYSTEM” and add zero mean white Gaussian Noise
to them such that the Signal to Noise Ratio is 0 dB. You can use randn() to generate
the noise for the 6 target and 6 clutter images. Add them to the images and subplot
12 noisy images.
1
pf2

Partial preview of the text

Download Generating Random Vectors & Linear Combinations in EE640 Stochastic Systems Project 1 - Pr and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

EE640 STOCHASTIC SYSTEMS

Spring, 2006 COMPUTER PROJECT 1

PART A: SYNTHESIS (March 21, 2006)

Let N = 512:

  1. Uniform pseudo-random numbers. Generate 6 random vectors, each with a different seed. The vectors are all N 2 × 1 where each element is uniformly distributed between 0 and 1. Each element is independent from the others. Mathematically refer to the vectors as: u 1 , u 2 , u 3 , u 4 , u 5 , u 6 , (1)
  2. Prove the parametric transformation equations for converting from a uniform distri- bution to a gaussian distribution are correct.

gi[2i + 1] =

−2 ln ui[2n + 1] cos 2πui[2n + 2] (2)

gi[2i + 2] =

−2 ln ui[2n + 1] sin 2πui[2n + 2] (3)

where n = 0, 1 , 2... (N 2 / 2 − 1)

  1. Generate six N 2 × 1 gaussian random vectors from the associated vectors in part (1). Use the transformation developed in (2). Generate them with a 0 mean and unity variance and store as you did in (1). Refer to them as

g 1 , g 2 , g 3 , g 4 , g 5 , g 6 , (4)

  1. Linear combinations of r.v.s. Generate five N 2 × 1 vectors such that

s 1 = u 1 + u 2 s 2 = u 1 + u 2 + u 3 s 3 = u 1 + u 2 + u 3 + u 4 (5) s 4 = u 1 + u 2 + u 3 + u 4 + u 5 s 5 = u 1 + u 2 + u 3 + u 4 + u 5 + u 6

  1. Change gi from lexicographical form to 2D matrix Gi. Put the first N elements in gi to the first row of Gi, the N − 2 N elements in gi to the second row of Gi and so on. The size of gi is N 2 × 1 and the size of Gi is N × N.
  2. Letting N = 128: Use the 12 training images from Project 1-S: Supplemental “SYN- THESIS OF DETERMINISTIC SYSTEM” and add zero mean white Gaussian Noise to them such that the Signal to Noise Ratio is 0 dB. You can use randn() to generate the noise for the 6 target and 6 clutter images. Add them to the images and subplot 12 noisy images.
  1. Generate two more 1-D vectors, a pseudo-random binary (i.e., bipolar) sequence and pseudo-random intensity sequence such that:

bbinary[n] =

1 for u 1 [n] ≥ 0. 5 , − 1 for u 1 [n] < 0. 5. (6)

and sintensity[n] =

g 1 [n]

where n = 1, 2 ,... N 2. We will use these to conduct some signal processing experi- ments.