I read respect to digital filters, and implemented both IIR and FIR filters and I found that this type of filters have a called "group delay". Now I know that the IIR have a non-linear group delay and the FIR have a linear group delay.
I have a real-time system that require a high-pass filter computed over a computer (good processor and RAM), allways that pass through the filter I'll have a phase distortion, taking advantage of the good processor: What is the best method to correct the phase and faked the response of the filter with the correct phase?
In the image above I extend my input signal with the same number of coefficients at the right and I try to correct the group delay, filtering the first time, invert the response in the time and pass again by through the filter and revert again the response in the time. The result correct the phase but causes other type the distorsion in the last samples. What is wrong? My knowledge about filters is not so wide unfortunately.
Note: The number of coefficients that I am using is 1000, Fs: 6400 samples/second and cutOff: 10 Hz.
I appreciate so much any help and aclaration. Thanks