kaiser

Contents

kaiser#

class brainunit.math.kaiser(M, beta)#

Return a Kaiser window of size M.

JAX implementation of numpy.kaiser().

Parameters:
  • M (int) – The window size.

  • beta (Array | ndarray | bool | number | bool | int | float | complex) – The Kaiser window parameter.

Return type:

Array

Returns:

An array of size M containing the Kaiser window.

Examples

>>> with jnp.printoptions(precision=2, suppress=True):
...   print(jnp.kaiser(4, 1.5))
[0.61 0.95 0.95 0.61]

See also