0

I'm new to Python, I hope not to obvious questions, need some urgent help.

I have a file with the signal, I have to answer the questions: a) present a statistical description of the original signal (maximum, minimum, average and standard deviation). b) Filter the signal to be observed with minimum noise and high frequency "base line wandering". Make the plot of this signal [Create subplot 1] c) Provide a description of statistical signal filtardo.

I've done this code:

max_s = max (s)
min_s = min (s)
std_s = std (s)
mean_s = mean (s)

fil = s
sf = ni.filter.bandpass (fil, 1., 45., fs = 495)
subplot (4, 1, 1)
plot (t, n)

max_sf = max (sf)
min_sf = min (sf)
std_sf = std (sf)
mean_sf = mean (sf)

but still is not working, need help

4

1 回答 1

2

对于高频噪声,我建议使用冷杉滤波器。参见例如:

http://mpastell.com/2010/01/18/fir-with-scipy/

您需要一个低通滤波器,它还可以阻止 60hz 噪声。

对于基线漂移,我建议将漂移合并到您用于分析数据的任何算法中。

于 2013-05-07T21:35:03.433 回答