⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 removedc.c

📁 speech signal process tools
💻 C
字号:
/*| 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -