diff m-toolbox/classes/@specwin/kaiser_rov.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@specwin/kaiser_rov.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,27 @@
+function rov = kaiser_rov(alpha)
+
+% KAISER_ROV returns the recommended overlap for a Kaiser window with
+% parameter alpha.
+% 
+% Taken from C code of Gerhard Heinzel:
+% 
+%    Compute the 'recommended overlap' (ROV) [%] 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 1.5%, mainly due
+%    to insufficient precision in the data points
+% 
+% M Hewitson 19-05-07
+% 
+% $Id: kaiser_rov.m,v 1.2 2011/04/08 08:56:36 hewitson Exp $
+% 
+
+
+a0  = 0.0061076;
+a1  = 0.00912223;
+a2  = -0.000925946;
+a3  = 4.42204e-05;
+x   = alpha;
+rov =  100 - 1 / (((((a3 * x) + a2) * x) + a1) * x + a0);
+
+% END