Home > classes > @specwin > kaiser_w3db.m

kaiser_w3db

PURPOSE ^

KAISER_W3DB returns the 3dB bandwidth in bins of a kaiser window with

SYNOPSIS ^

function w3db = kaiser_w3db(alpha)

DESCRIPTION ^

 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.m,v 1.1 2008/06/20 10:46:55 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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.m,v 1.1 2008/06/20 10:46:55 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

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003