mindspore/docs/api/api_python/ops/mindspore.ops.STFT.rst

27 lines
1.2 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.STFT
==================
.. py:class:: mindspore.ops.STFT(n_fft, hop_length, win_length, normalized, onesided, return_complex)
应用短时傅里叶变换STFT于输入信号。
STFT将信号分割成狭窄的时间间隔并对每个片段进行傅立叶变换来量化非平稳信号频率和相位随时间的变化。
更多参考详见 :func:`mindspore.ops.stft`
参数:
- **n_fft** (int) - 傅里叶变换的尺寸。
- **hop_length** (int) - 相邻滑动窗口之间的距离。
- **win_length** (int) - 窗口和STFT过滤器的尺寸。
- **normalized** (bool) - 控制是否返回规范化的STFT结果。
- **onesided** (bool) - 控制是否返回一半的结果,以避免实际输入的冗余。
- **return_complex** (bool) - 若为 ``True`` 返回一个复数Tensor。若为 ``False`` 返回一个实数Tensor
且其具有额外的最后一维以表示实部和虚部。
输入:
- **x** (Tensor) - STFT的时间序列必须是1-D Tensor或2-D Tensor。
- **window** (Tensor) - 可选的窗口函数。
输出:
Tensor包含STFT的结果。