Hey guys so I have an input sequence that are real values that represent intensity of a column of an image. I also have the transfer function in the Z domain of a 2nd order high pass filter. I have the following transfer function using the bi-linear transform estimate.
Say my input signal is defined as x[n] = 27, 588, 1013, 255, 38. How can I determine the output y[n]?
There are two options, one being I determine X[z] then multiply it by H[z] and take the inverse transform.
The other being I transform H[z] into h[n] and then I convolve it with x[n] using the following scheme .
How would I implement either of these solutions in code (eg. coding an automatic way to generate X[z] from an arbitrary x[n] OR programming a convolution function that implements FOIL for the second option)?
Is one easier than the other? Keep in mind that my signal is 512 samples in length as well, so convolution may be very expensive.