Current File : //usr/man/man3mlib/mlib_SignalLPCAutoCorrelGetPARCOR_F32.3mlib
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc.  All Rights Reserved 
.TH mlib_SignalLPCAutoCorrelGetPARCOR_F32 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions"
.SH NAME
mlib_SignalLPCAutoCorrelGetPARCOR_F32 \- return the partial correlation (PARCOR) coefficients
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ]
#include <mlib.h>

\fBmlib_status\fR \fBmlib_SignalLPCAutoCorrelGetPARCOR_F32\fR(
     \fBmlib_f32 *\fR\fIparcor\fR, \fBvoid *\fR\fIstate\fR);
.fi

.SH DESCRIPTION
.sp
.LP
The \fBmlib_SignalLPCAutoCorrelGetPARCOR_F32()\fR function returns the partial correlation (PARCOR) coefficients.
.sp
.LP
In linear predictive coding (LPC) model, each speech sample is represented as a linear combination of the past \fBM\fR samples.
.sp
.in +2
.nf
	        M
	s(n) = SUM a(i) * s(n-i) + G * u(n)
	       i=1
.fi
.in -2

.sp
.LP
where \fBs(*)\fR is the speech signal, \fBu(*)\fR is the excitation signal, and \fBG\fR is the gain constants, \fBM\fR is the order of the linear prediction filter. Given \fBs(*)\fR, the goal is to find a set of coefficient \fBa(*)\fR that minimizes the prediction error \fBe(*)\fR.
.sp
.in +2
.nf
	               M
	e(n) = s(n) - SUM a(i) * s(n-i)
	              i=1
.fi
.in -2

.sp
.LP
In autocorrelation method, the coefficients can be obtained by solving following set of linear equations.
.sp
.in +2
.nf
	 M
	SUM a(i) * r(|i-k|) = r(k), k=1,...,M
	i=1
.fi
.in -2

.sp
.LP
where
.sp
.in +2
.nf
	      N-k-1
	r(k) = SUM s(j) * s(j+k)
	       j=0
.fi
.in -2

.sp
.LP
are the autocorrelation coefficients of \fBs(*)\fR, \fBN\fR is the length of the input speech vector. \fBr(0)\fR is the energy of the speech signal.
.sp
.LP
Note that the autocorrelation matrix \fBR\fR is a Toeplitz matrix (symmetric with all diagonal elements equal), and the equations can be solved efficiently with Levinson-Durbin algorithm.
.sp
.LP
See \fIFundamentals of Speech Recognition\fR by Lawrence Rabiner and Biing-Hwang Juang, Prentice Hall, 1993.
.SH PARAMETERS
.sp
.LP
The function takes the following arguments:
.sp
.ne 2
.mk
.na
\fB\fIparcor\fR\fR
.ad
.RS 10n
.rt  
The partial correlation (PARCOR) coefficients.
.RE

.sp
.ne 2
.mk
.na
\fB\fIstate\fR\fR
.ad
.RS 10n
.rt  
Pointer to the internal state structure.
.RE

.SH RETURN VALUES
.sp
.LP
The function returns \fBMLIB_SUCCESS\fR if successful. Otherwise it returns \fBMLIB_FAILURE\fR.
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Interface StabilityCommitted
_
MT-LevelMT-Safe
.TE

.SH SEE ALSO
.sp
.LP
\fBmlib_SignalLPCAutoCorrelInit_F32\fR(3MLIB), \fBmlib_SignalLPCAutoCorrel_F32\fR(3MLIB), \fBmlib_SignalLPCAutoCorrelGetEnergy_F32\fR(3MLIB), \fBmlib_SignalLPCAutoCorrelFree_F32\fR(3MLIB), \fBattributes\fR(5)