Mercurial > hg > may
changeset 292:240eb77ee2e8
Make boxcar all-1s, not all-0.5s -- means it doesn't have the same attenuation on average as other windows, but it's more consistent with other environments
author | Chris Cannam |
---|---|
date | Fri, 31 May 2013 17:32:56 +0100 |
parents | c40821ff70f8 |
children | f481ac8052c4 |
files | yetilab/signal/window.yeti |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/yetilab/signal/window.yeti Fri May 31 15:14:09 2013 +0100 +++ b/yetilab/signal/window.yeti Fri May 31 17:32:56 2013 +0100 @@ -67,7 +67,7 @@ blackmanNuttall = cosineWindow 0.3635819 0.4891775 0.1365995 0.0106411; blackmanHarris = cosineWindow 0.35875 0.48829 0.14128 0.01168; -boxcar n = if n < 2 then vec.ones n else vec.consts 0.5 n fi; +boxcar n = vec.ones n; windowFunction type options = (var sampling = Periodic ();