mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
3e3d9ec3af
Add test case for Kaiser window in MATLAB.
6 lines
217 B
Matlab
6 lines
217 B
Matlab
function win = kaiser_window(N, beta)
|
|
% Create an N-point kaiser window with given beta.
|
|
|
|
indices = 2 * (0 : N - 1) / (N - 1) - 1;
|
|
mod = modified_bessel(beta);
|
|
win = modified_bessel(beta * sqrt(1 - indices.^2)) / mod; |