Mercurial > hg > octave-nkf
comparison scripts/signal/rectangle_lw.m @ 3457:e031284eea27
[project @ 2000-01-19 08:49:56 by jwe]
author | jwe |
---|---|
date | Wed, 19 Jan 2000 08:50:14 +0000 |
parents | 858695b3ed62 |
children | 38c61cbf086c |
comparison
equal
deleted
inserted
replaced
3456:434790acb067 | 3457:e031284eea27 |
---|---|
18 ## @deftypefn {Function File} {} rectangle_lw (@var{n}, @var{b}) | 18 ## @deftypefn {Function File} {} rectangle_lw (@var{n}, @var{b}) |
19 ## Rectangular lag window. Subfunction used for spectral density | 19 ## Rectangular lag window. Subfunction used for spectral density |
20 ## estimation. | 20 ## estimation. |
21 ## @end deftypefn | 21 ## @end deftypefn |
22 | 22 |
23 ## Author: FL <Friedrich.Leisch@ci.tuwien.ac.at> | 23 ## Author: FL <Friedrich.Leisch@ci.tuwien.ac.at> |
24 ## Description: Rectangular lag window | 24 ## Description: Rectangular lag window |
25 | 25 |
26 function retval = rectangle_lw (n, b) | 26 function retval = rectangle_lw (n, b) |
27 | 27 |
28 retval = zeros (n, 1); | 28 retval = zeros (n, 1); |
29 t = floor (1 / b); | 29 t = floor (1 / b); |