TAILIEUCHUNG - Biosignal and Biomedical Image Processing phần 4

Tham khảo tài liệu 'biosignal and biomedical image processing phần 4', kỹ thuật - công nghệ, kĩ thuật viễn thông phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Digital Filters 105 wh .3 pi wl .1 pi L 128 for i 1 L 1 n i-L 2 if n 0 Set bandpass cutoff frequencies Number of coeffients equals 128 Generate bandpass coefficient function and make symmetrical bn i else bn i wh pi-wl pi sin wh n pi n - sin wl n pi n Filter impulse response end end bn bn . blackman L 1 H_data abs fft data freq 1 N 2 fs N plot freq H_data 1 N 2 k Apply Blackman window to filter coeffs. Plot data spectrum for comparison Frequency vector for plotting Plot data FFT only to fs 2 hold on H abs fft bn N Find the filter frequency response H H max H_data max H Scale filter H z for comparison Plot the filter frequency response xlabel Frequency Hz ylabel H f y conv data bn plot freq H 1 N 2 --k Filter the data using convolution figure t 1 N fs Time vector for plotting subplot 2 1 1 plot t 1 N 2 data 1 N 2 k Plot only 1 2 of the data set for clarity xlabel Time sec ylabel EEG subplot 2 1 2 Plot the bandpass filtered data plot t 1 N 2 y 1 N 2 k ylabel Time ylabel Filtered EEG Copyright Marcel Dekker Inc. All rights reserved. Marcel Dekker Inc. 270 Madison Avenue New York New York 10016 TLFeBOOK 106 Chapter 4 In this example the initial loop constructs the filter weights based on Eq. 12 . The filter has high and low cutoff frequencies of and n radians sample or 2 and 2 Hz. Assuming a sampling frequency of 100 Hz this would correspond to cutoff frequencies of 5 to 15 Hz. The FFT is also used to evaluate the filter s frequency response. In this case the coefficient function is zero-padded to 1000 points both to improve the appearance of the frequency response curve and to match the data length. A frequency vector is constructed to plot the correct frequency range based on a sampling frequency of 100 Hz. The bandpass filter is applied to the data using convolution. Two adjustments must be made when using convolution to implement an FIR filter. If the filter weighting function is asymmetrical as with the two-point central difference .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.