Assignment 2

Install the packages from requirements.txt through pip. To run and get output use:

python3 main.py > output.md

Task 1

a) Naive Approach

Mean: 133.7

Variance: 1.337

b) Welford's Algorithm

Mean: 133.7

Variance: 1.337

c) One-pass arbitrary

Mean: 133.7

Variance: 1.337

d) Histogram

Mean: 133.7

Variance: 1.337

e) Runtime Differences:

              Naive     Welford     1Pass    Histogram
--------  ---------  ----------  --------  -----------
Mean      133.7       133.7      133.7       133.7
Variance    1.33711     1.33711    1.3371      1.33711
Time       59.3611   1290.69     792.556      58.8131

Task 2 -- SNR Plotting

Part A

Signal Response Plot

Part B

Noise Response Plot

Part C

SNR Response Plot

Task 3 -- CPA

Run time is 30.24 seconds

Key is: [237. 58. 24. 116. 22. 40. 132. 182. 197. 231. 224. 64. 215. 78. 87. 187.]