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

15 lines
758 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.bartlett
=================================
.. py:function:: mindspore.numpy.bartlett(M)
用于生成Bartlett窗口。Bartlett窗口是一种特殊的三角形窗口函数它在信号处理和频谱分析中经常使用。Bartlett窗口在时域上是对称的幅度逐渐减小。
参数:
- **M** (int) - 输出窗口的长度。如果为零或小于零,则返回一个空数组。
返回:
Tensor生成一个长度为 ``M`` 的Bartlett窗口其中它的第一个值和最后一个值为 :math:`0` ,中间部分为尖峰,即三角形形状(仅当样本数为奇数时才会出现值 :math:`1` )。
异常:
- **TypeError** - 如果输入 ``M`` 不是一个int型数据。