I have a Gaussian Function -
$$G(a,x) = \sqrt{\frac{6.0}{\pi \cdot a^2}}\cdot \exp\left(\frac{-6.0x^2}{a^2}\right)$$
and I want to filter it with a tophat kernel
$$ f(x,\xi) = \left\{\begin{aligned} &\frac{1}{\Delta} &&: |x-\xi| < \frac {\Delta}{2}\\ &0 &&: |x-\xi| \ge \frac{\Delta}{2} \end{aligned} \right.$$
Is it possible to derive an analytical expression for filtered function?
For example if I we wish to filter G with a Gaussian filter then I can do it analytically.
I hope it is clear enough.If not please let me know. Thanks in advance
Yes, an analytical expression is possible. However, it includes the Gaussian Error Function (
erf), so it may not be simple to calculate (although many numerical programming packages include a fairly accurate/efficient approximation).The general ingredients:
So you can split your tophat kernel into two modified Heaviside step functions, and split your convolution as well. Treat each convolution as integration to get your Gaussian Error Functions, and recombine - I expect the end result will be the difference of two GEFs.