jax.numpy.hamming¶

jax.numpy.hamming(*args, **kwargs)¶

Return the Hamming window.

LAX-backend implementation of hamming().

Original docstring below.

The Hamming window is a taper formed by using a weighted cosine.

Parameters

M (int) – Number of points in the output window. If zero or less, an empty array is returned.

Returns

out – The window, with the maximum value normalized to one (the value one appears only if the number of samples is odd).

Return type

ndarray

References

1

Blackman, R.B. and Tukey, J.W., (1958) The measurement of power spectra, Dover Publications, New York.

2

E.R. Kanasewich, “Time Sequence Analysis in Geophysics”, The University of Alberta Press, 1975, pp. 109-110.

3

Wikipedia, “Window function”, https://en.wikipedia.org/wiki/Window_function

4

W.H. Press, B.P. Flannery, S.A. Teukolsky, and W.T. Vetterling, “Numerical Recipes”, Cambridge University Press, 1986, page 425.