mindspore/docs/api/api_python/numpy/mindspore.numpy.hanning.rst

15 lines
548 B
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.numpy.hanning
=================================
.. py:function:: mindspore.numpy.hanning(M)
返回一个Hanning窗口函数。Hanning窗口函数是一种基于加权余弦的锥度函数。
参数:
- **M** (int) - 输出窗口的长度。如果为零或小于零,则返回一个空数组。
返回:
Tensor生成一个长度为 ``M`` 且最大值归一化为1的Hanning窗口仅当样本数为奇数时才会出现值1
异常:
- **TypeError** - 如果 ``M`` 不是int型。