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

24 lines
1.0 KiB
ReStructuredText
Raw 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量化非平稳信号频率和相位随时间的变化。
参数:
- **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) - 可选的窗口函数。
输出:
- **y** (Tensor) - 一个Tensor包含STFT的结果其shape如上所述。