This function outputs the FFT of the wavelet of family 'type' with parameters
in 'opt', of length N at scale a: (psi(-t/a)).
Note that the output is made so that the inverse fft of the
result is zero-centered in time. This is important for
convolving with the derivative(dpsih). To get the correct
output, perform an ifftshift
. That is,
psi = ifftshift(fft(psih, inverse=TRUE) / length(psih))
,
xfilt = ifftshift(fft(fft(x) * psih, inverse=TRUE) / length(fft(x) * psih))