cupy.bartlett#
- cupy.bartlett(M)[source]#
Returns the Bartlett window.
The Bartlett window is defined as
\[w(n) = \frac{2}{M-1} \left( \frac{M-1}{2} - \left|n - \frac{M-1}{2}\right| \right)\]- Parameters
M (int) – Number of points in the output window. If zero or less, an empty array is returned.
- Returns
Output ndarray.
- Return type
See also