scipy.fft.idst¶
-
scipy.fft.
idst
(x, type=2, n=None, axis=- 1, norm=None, overwrite_x=False, workers=None)[source]¶ Return the Inverse Discrete Sine Transform of an arbitrary type sequence.
- Parameters
- xarray_like
The input array.
- type{1, 2, 3, 4}, optional
Type of the DST (see Notes). Default type is 2.
- nint, optional
Length of the transform. If
n < x.shape[axis]
, x is truncated. Ifn > x.shape[axis]
, x is zero-padded. The default results inn = x.shape[axis]
.- axisint, optional
Axis along which the idst is computed; the default is over the last axis (i.e.,
axis=-1
).- norm{None, ‘ortho’}, optional
Normalization mode (see Notes). Default is None.
- overwrite_xbool, optional
If True, the contents of x can be destroyed; the default is False.
- workersint, optional
Maximum number of workers to use for parallel computation. If negative, the value wraps around from
os.cpu_count()
. Seefft
for more details.
- Returns
- idstndarray of real
The transformed input array.
See also
dst
Forward DST
Notes
‘The’ IDST is the IDST-II, which is the same as the normalized DST-III.
The IDST is equivalent to a normal DST except for the normalization and type. DST type 1 and 4 are their own inverse and DSTs 2 and 3 are each other’s inverses.