To compare the performance of alternative filters, consider a square-wave signal with a frequency of f=0.33 cycles/min and an amplitude 0.5 corrupted by
(i) High-frequency sinusoidal noise (amplitude=0.25, f_{N} =9 cycles/min)
(ii) Random (Gaussian) noise with zero mean and a variance of 0.01
Evaluate both analog and digital single exponential filters, as well as a moving-average filter, and assess the effect of sampling interval Δt.