dsp.LPCToRC

(To be removed) Convert linear prediction coefficients to reflection coefficients

dsp.LPCToRC will be removed in a future release. Use poly2rc instead. For more information, see Compatibility Considerations.

Description

The LPCToRC object converts linear prediction coefficients to reflection coefficients.

To convert LPC to reflection coefficients:

  1. Define and set up your LPC to RC converter. See Construction.

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

Note

Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

Construction

lpc2rc = dsp.LPCToRC returns an LPC to RC System object, lpc2rc, that converts linear prediction coefficients (LPC) to reflection coefficients (RC).

lpc2rc = dsp.LPCToRC('PropertyName',PropertyValue,...) returns an LPC to RC conversion object, lpc2rc, with each specified property set to the specified value.

Properties

PredictionErrorOutputPort

Enable normalized prediction error power output

Set this property to true to return the normalized error power as a vector with one element per input channel. Each element varies between zero and one. The default is true.

ExceptionOutputPort

Produces output with stability status of filter represented by LPC coefficients

Set this property to true to return the stability status of the filter. A logical value of 1 indicate a stable filter. A logical value of 0 indicate an unstable filter. 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

stepConvert columns of linear prediction coefficients to reflection coefficients
Common to All System Objects
release

Allow System object property value changes

Examples

Convert LPC Coefficients To RC Coefficients

Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent step syntax. For example, myObject(x) becomes step(myObject,x).

Convert the linear prediction coefficients to reflection coefficients:

load mtlb

levinson = dsp.LevinsonSolver;
levinson.AOutputPort = true;
levinson.KOutputPort = false;

ac = dsp.Autocorrelator;
lpc2rc = dsp.LPCToRC;
ac.MaximumLagSource = 'Property';

Compute autocorrelation for lags between [0:10]

ac.MaximumLag = 10; 
a = ac(mtlb);
A = levinson(a); % Compute LPC coefficients
[K, P] = lpc2rc(A); % Convert to RC

Algorithms

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

  • There is no object property that corresponds to the Type of conversion block parameter. The object always converts LPC to RC.

  • The NonUnityFirstCoefficientAction object property corresponds to the If first input value is not 1 block parameter. There is neither a Normalize and warn nor an Error option for the object.

Compatibility Considerations

expand all

Warns starting in R2019a

Extended Capabilities

See Also

Functions

Introduced in R2012a