fftwindow#
- caput.algorithms.fft.fftw.fftwindow(x, window, axes=None)[source]#
Apply a window function in Fourier space.
The only difference between this and
fftconvolve()is that this assumes thatwindowis already in the Fourier domain, andwindowcan be real or complex whenxis complex.If the window is to be applied repeatedly to arrays with the same size and dtype, it is faster to use the
FFTWclass directly to avoid creating new :py:class`.FFTW` objects.- Parameters:
- x(…,
N, …)complexarray_like Input array
- window(…,
N, …) array_like Window to be applied in the Fourier domain.
- axes
int| iterable[int], optional Axes over which to apply the window. Default is all axes.
- x(…,
- Returns: