removedc.c
来自「speech signal process tools」· C语言 代码 · 共 25 行
C
25 行
/*| 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 = "@(#)removedc.c 1.2 4/29/86";#endiffloat remove_dc(x,size) /* remove dc value in a data sequence */float x[];int size;{ int i; float dc = 0.0, avg = 0.0; for (i = 0; i < size; dc += x[i++]); avg = dc/size; for (i = 0; i < size; x[i++] -= avg); return dc;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?