shift — SciPy v1.15.3 Manual (original) (raw)

scipy.fftpack.

scipy.fftpack.shift(x, a, period=None, _cache=<_thread._local object>)[source]#

Shift periodic sequence x by a: y(u) = x(u+a).

If x_j and y_j are Fourier coefficients of periodic functions x and y, respectively, then:

y_j = exp(ja2pi/periodsqrt(-1)) * x_f

Parameters:

xarray_like

The array to take the pseudo-derivative from.

afloat

Defines the parameters of the sinh/sinh pseudo-differential

periodfloat, optional

The period of the sequences x and y. Default period is 2*pi.