window.c
来自「speech signal process tools」· C语言 代码 · 共 27 行
C
27 行
/*| This material contains proprietary software of Entropic Processing, Inc. | Any reproduction, distribution, or publication without the the prior | written permission of Entropic Processing, Inc. is strictly prohibited.| Any public distribution of copies of this work authorized in writing by| Entropic Processing, Inc. must bear the notice | | "Copyright 1986 Entropic Processing, Inc."*/#ifdef SCCSstatic char *sccs_id = "@(#)window.c 1.2 4/29/86";#endifvoidhamming (data,size) /* perform Hamming window on data */float data[];int size;{ float twopibyn; double cos (); int i; twopibyn = 6.283185307 / (size-1); for (i = 0; i < size; i++) data[i] = data[i] * (0.54 - 0.46 * cos ((double) twopibyn * i));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?