hamming

Contents

hamming#

class saiunit.math.hamming(M)#

Return a Hamming window of size M.

JAX implementation of numpy.hamming().

Parameters:

M (int) – The window size.

Return type:

Array

Returns:

An array of size M containing the Hamming window.

Examples

>>> with jnp.printoptions(precision=2, suppress=True):
...   print(jnp.hamming(4))
[0.08 0.77 0.77 0.08]

See also