Your explanation is very clear. Thank you. I would like to detect dominant frequency from an accelerometer which seems similar process. The problem that I have is that my data is a real time continuous stream captured from a sensor. May I ask you how to get the accelerometer impulse rate in real time? Thanks
I guess you need a proper FIR filter in C++. Same approach. Reverse the template and put the coefficients in the FiR filter. github.com/berndporr Also Python allows Realtime filtering with lfilter sample by sample. Just Google it for the syntax.
Hey, nice demo, but can you explain why you simple use the values of the template as the filter coefficents? The same for the highpass and band-stop filter for dc and 50Hz cancelation. I dont get why the coeffiecients for the FIR correspond to the values of the template, respectivly the inverse FFT of your filter. Thanks for explaining
The pre-filtering has nothing to do with the matched filter per se. It just makes the detection reliable and easier. The matched filter acts _purely_ in the time domain. An FIR filter performs a poor man's convolution (just N samples and not infinity) between its impulse response and the incoming signal. A matched filter does a correlation between a signal and a template. In order to use an FIR filter for a correlation you need to time-reverse the template. See the previous clips which explain the theory.
Thank you for your video! Very useful!!!Do you mind sharing the file in the video? The command MAY BE: data = np.loadtxt( 'ecg_***.dat' ) I want to generate the same signal as you did.Many thanks.
For anyone in the future; you can remove DC offset by taking the derivative of the signal. You'll have to do the rest with the derivative, but if you recall, the derivative of a constant is 0.
These lectures are part of flipped classroom teaching. This means that you need to write that code after you have watched the videos here. I'm sure your teacher will agree with it.
grüß gott herr lehrer dank für die hilfe
Your explanation is very clear. Thank you. I would like to detect dominant frequency from an accelerometer which seems similar process. The problem that I have is that my data is a real time continuous stream captured from a sensor. May I ask you how to get the accelerometer impulse rate in real time? Thanks
I guess you need a proper FIR filter in C++. Same approach. Reverse the template and put the coefficients in the FiR filter. github.com/berndporr Also Python allows Realtime filtering with lfilter sample by sample. Just Google it for the syntax.
How is that for a complex signal? Is the filter still just the time reverse?
Hey, nice demo, but can you explain why you simple use the values of the template as the filter coefficents? The same for the highpass and band-stop filter for dc and 50Hz cancelation. I dont get why the coeffiecients for the FIR correspond to the values of the template, respectivly the inverse FFT of your filter. Thanks for explaining
The pre-filtering has nothing to do with the matched filter per se. It just makes the detection reliable and easier. The matched filter acts _purely_ in the time domain. An FIR filter performs a poor man's convolution (just N samples and not infinity) between its impulse response and the incoming signal. A matched filter does a correlation between a signal and a template. In order to use an FIR filter for a correlation you need to time-reverse the template. See the previous clips which explain the theory.
Thank you for your video! Very useful!!!Do you mind sharing the
file in the video? The command MAY BE:
data = np.loadtxt( 'ecg_***.dat' )
I want to generate the same
signal as you did.Many thanks.
Hi, can you explain how did you prefilter the signal?
how you removed the DC and the 50HZ noise, did you find any function for it?
For anyone in the future; you can remove DC offset by taking the derivative of the signal. You'll have to do the rest with the derivative, but if you recall, the derivative of a constant is 0.
Please provide me with the code
Hey i need that code please give me link for downloading code....
For my college project purpose
These lectures are part of flipped classroom teaching. This means that you need to write that code after you have watched the videos here. I'm sure your teacher will agree with it.