You are on page 1of 2

classdef LPCToAutocorrelation

%LPCToAutocorrelation Convert linear prediction coefficients to


%autocorrelation coefficients
% HLPC2AC = signalblks.LPCToAutocorrelation returns a System object,
% HLPC2AC, that converts linear prediction coefficients (LPC) to
% autocorrelation coefficients.
%
% HLPC2AC = signalblks.LPCToAutocorrelation('PropertyName',
% PropertyValue, ...) returns an LPC to autocorrelation conversion
% object, HLPC2AC, with each specified property set to the specified
% value.
%
% Step method syntax:
%
% AC = step(HLPC2AC, A) converts the columns of the linear prediction
% coefficients, A, to autocorrelation coefficients, AC. The prediction
% error power is assumed to be 1.
%
% AC = step(HLPC2AC, A, P) converts the columns of the linear prediction
% coefficients, A, to autocorrelation coefficients, AC, using P as the
% prediction error power, when the PredictionErrorInputPort property is
% true. P must be a row vector with same number of columns as in A.
%
% LPCToAutocorrelation methods:
%
% step - See above description for use of this method
%
% LPCToAutocorrelation properties:
%
% PredictionErrorInputPort
- Enable prediction error power input
% NonUnityFirstCoefficientAction - Action to take when first LPC
%
coefficient is not 1
%
% % EXAMPLE: Convert LPC to autocorrelation coefficients.
%
a = [1.0 -1.4978 1.4282 -1.3930 0.9076 -0.3855 0.0711].';
%
hlpc2ac = signalblks.LPCToAutocorrelation;
%
ac = step(hlpc2ac, a);
%
% See also signalblks.LPCToLSF, signalblks.LPCToRC,
%
signalblks.LPCToCepstral, signalblks.RCToAutocorrelation.
%

Copyright 2009 The MathWorks, Inc.


methods
function out=LPCToAutocorrelation
%LPCToAutocorrelation Convert linear prediction coefficients to
%autocorrelation coefficients
% HLPC2AC = signalblks.LPCToAutocorrelation returns a System objec

t,
%
%
%
%
%
%

HLPC2AC, that converts linear prediction coefficients (LPC) to


autocorrelation coefficients.

%
%
%

value.

HLPC2AC = signalblks.LPCToAutocorrelation('PropertyName',
PropertyValue, ...) returns an LPC to autocorrelation conversion
object, HLPC2AC, with each specified property set to the specifi

ed
Step method syntax:

%
%

AC = step(HLPC2AC, A) converts the columns of the linear predict

coefficients, A, to autocorrelation coefficients, AC. The predic

%
%
%

error power is assumed to be 1.

coefficients, A, to autocorrelation coefficients, AC, using P as

prediction error power, when the PredictionErrorInputPort proper

true. P must be a row vector with same number of columns as in A

ion
tion
AC = step(HLPC2AC, A, P) converts the columns of the linear pred

iction
the
ty is
.
%
%
%
%
%
%
%
%

LPCToAutocorrelation methods:
step - See above description for use of this method
LPCToAutocorrelation properties:
PredictionErrorInputPort

- Enable prediction error power i

nput
%
%
%
%
%
%
%
%
%
%

NonUnityFirstCoefficientAction - Action to take when first LPC


coefficient is not 1
% EXAMPLE: Convert LPC to autocorrelation coefficients.
a = [1.0 -1.4978 1.4282 -1.3930 0.9076 -0.3855 0.0711].';
hlpc2ac = signalblks.LPCToAutocorrelation;
ac = step(hlpc2ac, a);
See also signalblks.LPCToLSF, signalblks.LPCToRC,
signalblks.LPCToCepstral, signalblks.RCToAutocorrelatio

n.
end
end
properties
%NonUnityFirstCoefficientAction Action to take when first LPC
%
coefficient is not 1
% Specify the action that the System object should take when the
% first coefficient of each channel of the LPC input is not 1 as one
% of [{'Replace with 1'} | 'Normalize'].
NonUnityFirstCoefficientAction;
%PredictionErrorInputPort Enable prediction error power input
% Choose how to select the prediction error power. When this property
% is set to true, the prediction error power must be specified as a
% second input to the step method. When this property is set to false,
% the prediction error power is assumed to be 1. By default, the
% property is false.
PredictionErrorInputPort;
end
end

You might also like