comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function rov = kaiser_rov(alpha)
2
3 % KAISER_ROV returns the recommended overlap for a Kaiser window with
4 % parameter alpha.
5 %
6 % Taken from C code of Gerhard Heinzel:
7 %
8 % Compute the 'recommended overlap' (ROV) [%] of Kaiser windows
9 % from the parameter alpha. Best-fit polynomial
10 % was obtained from 180 data points between alpha=1
11 % and alpha=9.95. Maximum error is 1.5%, mainly due
12 % to insufficient precision in the data points
13 %
14 % M Hewitson 19-05-07
15 %
16 % $Id: kaiser_rov.m,v 1.2 2011/04/08 08:56:36 hewitson Exp $
17 %
18
19
20 a0 = 0.0061076;
21 a1 = 0.00912223;
22 a2 = -0.000925946;
23 a3 = 4.42204e-05;
24 x = alpha;
25 rov = 100 - 1 / (((((a3 * x) + a2) * x) + a1) * x + a0);
26
27 % END