jax.numpy.bartlett
jax.numpy.bartlett#
- jax.numpy.bartlett(*args, **kwargs)#
Return the Bartlett window.
LAX-backend implementation of
numpy.bartlett()
.Original docstring below.
The Bartlett window is very similar to a triangular window, except that the end points are at zero. It is often used in signal processing for tapering a signal, without generating too much ripple in the frequency domain.
- Parameters
M (int) – Number of points in the output window. If zero or less, an empty array is returned.
- Returns
out – The triangular window, with the maximum value normalized to one (the value one appears only if the number of samples is odd), with the first and last samples equal to zero.
- Return type
array
References
- 1
M.S. Bartlett, “Periodogram Analysis and Continuous Spectra”, Biometrika 37, 1-16, 1950.
- 2
E.R. Kanasewich, “Time Sequence Analysis in Geophysics”, The University of Alberta Press, 1975, pp. 109-110.
- 3
A.V. Oppenheim and R.W. Schafer, “Discrete-Time Signal Processing”, Prentice-Hall, 1999, pp. 468-471.
- 4
Wikipedia, “Window function”, https://en.wikipedia.org/wiki/Window_function
- 5
W.H. Press, B.P. Flannery, S.A. Teukolsky, and W.T. Vetterling, “Numerical Recipes”, Cambridge University Press, 1986, page 429.