dsp.LPCToAutocorrelation System object

Package: dsp

Convert linear prediction coefficients to autocorrelation coefficients

Description

The LPCToAutocorrelation System object™ converts linear prediction coefficients to autocorrelation coefficients.

To convert LPC to autocorrelation coefficients:

  1. Define and set up your LPC to autocorrelation object. See Construction.

  2. Call step to convert LPC according to the properties of dsp.LPCToAutocorrelation. The behavior of step is specific to each object in the toolbox.

Construction

H = dsp.LPCToAutocorrelation returns an LPC to autocorrelation System object, H, that converts linear prediction coefficients (LPC) to autocorrelation coefficients.

H = dsp.LPCToAutocorrelation('PropertyName',PropertyValue,...) returns an LPC to autocorrelation conversion object, H, with each specified property set to the specified value.

Properties

PredictionErrorInputPort

Enable prediction error power input

Choose how to select the prediction error power. When you set this property to true, you must specify the prediction error power as a second input to the step method. When you set this property to false, the object assumes that the prediction error power is 1. The default is false.

NonUnityFirstCoefficientAction

Action to take when first LPC coefficient is not 1

Specify the action that the object takes when the first coefficient of each channel of the LPC input is not 1. Select Replace with 1 or Normalize. The default is Replace with 1.

Methods

cloneCreate LPC to autocorrelation object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs of step method
isLockedLocked status for input attributes and nontunable properties
releaseAllow property value and input characteristics changes
stepAutocorrelation coefficients from LPC coefficients

Examples

Convert the linear prediction coefficients to autocorrelation coefficients:

 a = [1.0 -1.4978 1.4282 -1.3930 0.9076 -0.3855 0.0711].';
 hlpc2ac = dsp.LPCToAutocorrelation;
 ac = step(hlpc2ac, a);

Algorithms

This object implements the algorithm, inputs, and outputs described on the LPC/RC to Autocorrelation block reference page. The object properties correspond to the block parameters, except:

The object does not have a property that corresponds to the Type of Conversion block parameter. The object's behavior corresponds to the block's behavior when you set the Type of Conversion parameter to LPC to autocorrelation.
Was this topic helpful?