Documentation

dsp.RCToLPC System object

Convert reflection coefficients to linear prediction coefficients

Description

The个随机对照试验oLPCobject converts reflection coefficients to linear prediction coefficients.

To convert reflection coefficients to LPC:

  1. Define and set up your RC to LPC System object™. SeeConstruction.

  2. Callstepto convert RC to LPC according to the properties ofdsp.RCToLPC. The behavior ofstepis specific to each object in the toolbox.

Note

Starting in R2016b, instead of using thestep方法来执行操作defined by the System object, you can call the object with arguments, as if it were a function. For example,y = step(obj,x)andy = obj(x)perform equivalent operations.

Construction

rc2lpc = dsp.RCToLPCreturns an RC to LPC System object,rc2lpc, that converts reflection coefficients (RC) to linear prediction coefficients (LPC).

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

Properties

PredictionErrorOutputPort

Enable normalized prediction error power output

Set this property totrueto return the normalized error power as a vector with one element per input channel. Each element varies between0and1. The default istrue.

ExceptionOutputPort

Produce output with stability status of filter represented by LPC coefficients

Set this property totrueto return the stability of the filter. The output is a vector of a length equal to the number of channels. A logical value of1indicates a stable filter. A logical value of0indicates an unstable filter. The default isfalse.

Methods

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

Allow System object property value changes

Examples

expand all

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

Convert reflection coefficients to linear prediction coefficients.

levinson = dsp.LevinsonSolver; ac = dsp.Autocorrelator; ac.MaximumLagSource ='Property'; ac.MaximumLag = 10;% Compute autocorrelation% lags between [0:10]rc2lpc = dsp.RCToLPC; x = (1:100)'; a = ac(x); k = levinson(a);% Compute reflection coefficients[A, P] = rc2lpc(k);

Algorithms

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

There is no object property that corresponds to theType of conversionblock parameter. The object always converts LPC to RC.

Extended Capabilities

Introduced in R2012a

Was this topic helpful?