bundles / scipy latest / scipy / fftpack / _realtransforms / idstn
function
scipy.fftpack._realtransforms:idstn
Signature
def idstn ( x , type = 2 , shape = None , axes = None , norm = None , overwrite_x = False ) Summary
Return multidimensional Discrete Sine Transform along the specified axes.
Parameters
x: array_likeThe input array.
type: {1, 2, 3, 4}, optionalType of the DST (see Notes). Default type is 2.
shape: int or array_like of ints or None, optionalThe shape of the result. If both
shapeandaxes(see below) are None,shapeisx.shape; ifshapeis None butaxesis not None, thenshapeisnumpy.take(x.shape, axes, axis=0). Ifshape[i] > x.shape[i], the ith dimension is padded with zeros. Ifshape[i] < x.shape[i], the ith dimension is truncated to lengthshape[i]. If any element ofshapeis -1, the size of the corresponding dimension ofxis used.axes: int or array_like of ints or None, optionalAxes along which the IDST is computed. The default is over all axes.
norm: {None, 'ortho'}, optionalNormalization mode (see Notes). Default is None.
overwrite_x: bool, optionalIf True, the contents of
xcan be destroyed; the default is False.
Returns
y: ndarray of realThe transformed input array.
Notes
For full details of the IDST types and normalization modes, as well as references, see idst.
Examples
import numpy as np from scipy.fftpack import dstn, idstn rng = np.random.default_rng() y = rng.standard_normal((16, 16)) np.allclose(y, idstn(dstn(y, norm='ortho'), norm='ortho'))✓
See also
- dstn
multidimensional DST
Aliases
-
scipy.fftpack.idstn