kaiser_bessel_derived(M, beta, *, sym=True)
It is designed to be suitable for use with the modified discrete cosine transform (MDCT) and is mainly used in audio signal processing and audio coding.
Number of points in the output window. If zero, an empty array is returned. An exception is thrown when it is negative. Note that this window is only defined for an even number of points.
Kaiser window shape parameter.
This parameter only exists to comply with the interface offered by the other window functions and to be callable by get_window. When True (default), generates a symmetric window, for use in filter design.
The window, normalized to fulfil the Princen-Bradley condition.
Return a Kaiser-Bessel derived window.
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
N = 50
for alpha in [0.64, 2.55, 7.64, 31.83]:
ax.plot(signal.windows.kaiser_bessel_derived(2*N, np.pi*alpha),
label=f"{alpha=}")
ax.grid(True)
ax.set_title("Kaiser-Bessel derived window")
ax.set_ylabel("Amplitude")
ax.set_xlabel("Sample")
ax.set_xticks([0, N, 2*N-1])
ax.set_xticklabels(["0", "N", "2N+1"]) # doctest: +SKIP
ax.set_yticks([0.0, 0.2, 0.4, 0.6, 0.707, 0.8, 1.0])
fig.legend(loc="center")
fig.tight_layout()
fig.show()
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal.windows._windows:get_window
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them