tf.keras.ops.kaiser

Kaiser window function.

The Kaiser window is defined as: w[n] = I0(beta * sqrt(1 - (2n / (N - 1) - 1)^2)) / I0(beta) where I0 is the modified zeroth-order Bessel function of the first kind.

x Scalar or 1D Tensor. The window length.
beta Float. Shape parameter for the Kaiser window.

A 1D tensor containing the Kaiser window values.

Example:

x = keras.ops.convert_to_tensor(5)
keras.ops.kaiser(x, beta=14.0)
array([7.7268669e-06, 1.6493219e-01, 1.0000000e+00, 1.6493219e-01,
   7.7268669e-06], dtype=float32)