rc2lar.c

来自「speech signal process tools」· C语言 代码 · 共 47 行

C
47
字号
/*					  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." 				 	  This program takes as standard input an ascii file of reflection  coefficients and converts them to log area ratios using rc_to_lar.  Alan Parker, EPI, Washington, DC.*/#ifdef SCCSchar *sccs_id = "@(#)rc2lar.c	1.2 9/3/86 EPI";#endif#include <stdio.h>#include <sps/sps.h>main(argc,argv)int argc;char **argv;{   float logratio;   double rc;   int rc_to_lar();   while(scanf("%lf",&rc) != EOF) {    if(rc_to_lar(rc,&logratio) != 0)	 fprintf(stderr,                 "rc2lar: warning: reflection coefficient out of  range.\n");	else     printf("%f\n",logratio);   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?