KAISER_W3DB returns the 3dB bandwidth in bins of a kaiser window with parameter alpha. Taken from C code of Gerhard Heinzel: Compute the 3dB bandwidth (W3db) [bins] of Kaiser windows from the parameter alpha. Best-fit polynomial was obtained from 180 data points between alpha=1 and alpha=9.95. Maximum error is 0.006 bins. M Hewitson 19-05-07 $Id: kaiser_w3db.html,v 1.14 2008/03/31 10:27:40 hewitson Exp $
0001 function w3db = kaiser_w3db(alpha) 0002 0003 % KAISER_W3DB returns the 3dB bandwidth in bins of a kaiser window with 0004 % parameter alpha. 0005 % 0006 % Taken from C code of Gerhard Heinzel: 0007 % 0008 % Compute the 3dB bandwidth (W3db) [bins] 0009 % of Kaiser windows from the parameter alpha. 0010 % Best-fit polynomial was obtained from 180 data 0011 % points between alpha=1 and alpha=9.95. 0012 % Maximum error is 0.006 bins. 0013 % 0014 % M Hewitson 19-05-07 0015 % 0016 % $Id: kaiser_w3db.html,v 1.14 2008/03/31 10:27:40 hewitson Exp $ 0017 % 0018 0019 a0 = 0.757185; 0020 a1 = 0.377847; 0021 a2 = -0.0238342; 0022 a3 = 0.00086012; 0023 x = alpha; 0024 w3db = (((((a3 * x) + a2) * x) + a1) * x + a0); 0025 0026 % END