mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 05:05:51 +00:00
6 lines
217 B
Mathematica
6 lines
217 B
Mathematica
|
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;
|