lartorc.3

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

3
93
字号
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)lartorc.3	1.6 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH LAR_TO_RC 3\-ESPSsp 18 Apr 1997.SH NAME.nflar_to_rc \- convert log area ratio to reflection coefficientrc_to_lar \- convert reflection coefficient to log area ratio.SH SYNOPSIS.ft Bfloat.brlar_to_rc(lar).brdouble lar;.sp.brint .brrc_to_lar(rc, lar).brdouble rc;float *lar;.ft.SH DESCRIPTION.I lar_to_rcconverts the log area ratio.I larto a reflection coefficient.I rcaccording to the formula:.nf	\fIrc\fR = [(\fIA\fR - 1)/(\fIA\fR + 1)].fiwhere .I Ais the antilog (base 10) of .I lar..PP.I rc_to_larconverts the reflection coefficient .I rcto a log area ratio .I laraccording to the formula.nf	\fIlar = \fRlog [(1 + \fIrc\fR)/(1 - \fIrc\fR)].fiwhere the logarithm is to base 10.  If -1 < \fIrc\fR < +1, the value returned in .I laris computed according to the formula above and .I rc_to_lar returns the value 0.  .PP.IR rc " >= 1,"the value returned in .I laris the system's maximum floating point value.  If .IR rc " <= -1,"the value returned in .I laris the system's maximum negative floating point value.  In both of these cases, .I rc_to_larreturns the value 1.  .SH EXAMPLEfloat refco, logratio;.brrefco = lar_to_rc(logratio);.spfloat refco, logratio;.brif (rc_to_lar(refco, &logratio) != 0) .br     fprintf(stderr, "WARNING - reflection coefficient out of range.\\n");.SH DIAGNOSTICSNone, other than the function return value.  .SH BUGSNone known..SH "SEE ALSO".nf\fIlarcbk2rc\fP(1\-ESPS).fi.SH AUTHORManual page by John Shore

⌨️ 快捷键说明

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