(m)
¶(m, a)
¶Return a Gaussian convolution window of length m. The width of the window is inversely proportional to the parameter a. Use larger a for a narrower window. Use larger m for longer tails.
w = exp ( -(a*x)^2/2 )
for x = linspace ( -(m-1)/2, (m-1)/2, m ).
Width a is measured in frequency units (sample rate/num samples). It should be f when multiplying in the time domain, but 1/f when multiplying in the frequency domain (for use in convolutions).
Package: signal