This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / fftpack / _pseudo_diffs / shift

function

scipy.fftpack._pseudo_diffs:shift

source: build-install/usr/lib/python3.14/site-packages/scipy/fftpack/_pseudo_diffs.py:503

Signature

def shift(x, a, period = None, _cache = <_thread._local object at 0x0000>)

Summary

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

Extended Summary

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

y_j = exp(j*a*2*pi/period*sqrt(-1)) * x_f

Parameters

x : array_like

The array to take the pseudo-derivative from.

a : float

Defines the parameters of the sinh/sinh pseudo-differential

period : float, optional

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

Aliases

  • scipy.fftpack.shift