I have an exercise in which I am trying to filter an input signal y(x)=sin(x). Ideally, I would like to apply a box filter to this signal.
Previously, I successfully convolved the input signal y(x) with a decaying response h(x)=e−x.
I did so by the following the definition of convolution (e.g., integrating ∫t0sin(x′)e−(x−x′)dx′ and computing a damped sinusoidal signal.
My box filter is given by 1Δ for|x−ξ|≤Δ2 and 0 elsewhere, where Δ is the filter width. I understand that a box filter is a local average, and I can implement this numerically, but I do not understand how to analytically integrate this as I did with the damped exponential 'filter'.
I tried to take the Fourier transform of y(x) and h(x) and multiplying them in Fourier space, but I could not figure out how to do so.
Thanks for any help.
No comments:
Post a Comment