refltofilt.3

来自「speech signal process tools」· 3 代码 · 共 78 行

3
78
字号
.\" Copyright (c) 1986-1990 Entropic Speech, Inc..\" Copyright (c) 1991 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)refltofilt.3	1.7 29 Jul 1991 ESI/ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH REFL_TO_FILTER 3\-ESPSsp 29 Jul 1991.SH NAMErefl_to_filter \- Convert reflection coefficients to autoregressive filter coefficients..SH SYNOPSIS.ft Bint.brrefl_to_filter (refl_coeff, filter, size).brfloat *refl_coeff, *filter;.brint size;.SH DESCRIPTION.PP.I refl_to_filterconverts .I size \- 1reflection coefficients,.I refl_coeff,(in positions 1 through.I size \- 1in the .I refl_coeffarray)into the equivalent.I sizeautoregressive filter coefficients .I filter(with the first coefficient being = \-1.0).\fIrefl_to_filter\fR returns 1 on failure (one of the reflection coefficientshas magnitude > 1.0) and 0 on successful completion..PPNote: this routine uses the sign convention for reflection coefficientsmentioned in FEA_ANA(5\-ESPS)..SH EXAMPLE.PP.nf/* We want to convert 3 reflection coefficients to * 4 autoregressive filter coefficients. Assume the * array \fIref_coeff\fP contains the reflection coefficients * starting from ref_coeff[0] to ref_coeff[2] and the * autoregressive filter coefficient array, \fIfilt_coeff\fP, has * enough memory to hold 4 coefficients. */	int	size = 3;	float	ref_coeff[3] = {	/* reflection coefficients */		 \-0.248618, 0.81, 0.0		};	float	filt_coeff[4];	/* size + 1 array *//* The following statement will convert the size ref_coeff * array to the proper size + 1 filt_coeff array. */	refl_to_filter (ref_coeff \- 1, filt_coeff, 4);/* Notice we are  sending (ref_coeff  \- 1)  pointer; it  is the one * before  ref_coeff[0].    Therefore,  in  refl_to_filt  routine, * refl_coeff[1]  will actually  be ref_coeff[0]. */.fi.SH REFERENCES[1] Programs for Digital Signal Processing, edited by the Digital Signal ProcessingCommittee, IEEE Acoustics, Speech, and Signal Processing Society, Chapter 4.3,pp 4.3-1 to 4.3-7..SH "SEE ALSO".PPrc_autopef(3\-ESPSsp).SH AUTHORCode by B. Fraenkel, manual page by D. Burton and A. Virdy.

⌨️ 快捷键说明

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