Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
rctopc.f
Package: celp_3.2a.tar.gz [view]
Upload User: szhypcb168
Upload Date: 2007-01-06
Package Size: 2187k
Code Size: 2k
Category:
Voice Compress
Development Platform:
Unix_Linux
- c==========================================================================
- c
- c NAME
- c rctopc
- c
- c FUNCTION
- c
- c convert reflection coefficients into lpc coefficients.
- c
- c BEWARE: This code does not use memory efficiently.
- c
- c SYNOPSIS
- c
- c subroutine rctopc(rc, pc, p)
- c
- c formal
- c data I/O
- c name type type function
- c -------------------------------------------------------------------
- c k real i reflection coefficients (m)
- c pc real o predictor parameters (m+1: a(1)=1.0)
- c p int i predictor order
- c
- c==========================================================================
- c
- c DESCRIPTION
- c
- c Converts reflection coefficients into lpc coefficients.
- c
- c CELP's LPC predictor coefficient convention is:
- c p+1 -(i-1)
- c A(z) = SUM a z where a = +1.0
- c i=1 i 1
- c
- c
- c==========================================================================
- c
- c REFERENCES
- c
- c Rabiner & Schafer, Digital Processing of Speech Signals,
- c Prentice-Hall, 1978, p. 443, equations 8.131a&b&c.
- c
- c**************************************************************************
- c-
- subroutine rctopc(k, pc, p)
- implicit undefined(a-z)
- integer p
- real k(p), pc(p+1)
- include 'ccsub.h'
- convex #include "ccsub.h"
- integer i, j
- real a(0:maxno, 0:maxno)
- c
- do 20 i = 0, p
- do 10 j = 0, p
- a(j, i) = 0.0
- 10 continue
- 20 continue
- do 50 i = 1, p
- a(i, i) = k(i)
- do 40 j = 1, i-1
- a(j, i) = a(j, i-1) - k(i)*a(i-j, i-1)
- 40 continue
- 50 continue
- pc(1) = 1.0
- do 60 j = 1, p
- pc(j+1) = -a(j, p)
- 60 continue
- return
- end