hanning

Contents

hanning#

class saiunit.math.hanning(M)#

Return a Hanning window of size M.

JAX implementation of numpy.hanning().

Parameters:

M (int) – The window size.

Return type:

Array

Returns:

An array of size M containing the Hanning window.

Examples

>>> with jnp.printoptions(precision=2, suppress=True):
...   print(jnp.hanning(4))
[0.   0.75 0.75 0.  ]

See also