dsp.RCToLPC System object

Package: dsp

Convert reflection coefficients to linear prediction coefficients

Description

The RCToLPC object converts reflection coefficients to linear prediction coefficients.

To convert reflection coefficients to LPC:

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

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

Construction

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

H = dsp.RCToLPC('PropertyName',PropertyValue,...) returns an RC to LPC conversion object, H, 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 0 and 1. The default is true.

ExceptionOutputPort

Produce output with stability status of filter represented by LPC coefficients

Set this property to true to return the stability of the filter. The output is a vector of a length equal to the number of channels. A logical value of 1 indicates a stable filter. A logical value of 0 indicates an unstable filter. The default is false.

Methods

cloneCreates instance of 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
stepConvert columns of reflection coefficients to linear prediction coefficients

Examples

Convert reflection coefficients to linear prediction coefficients:

 hlevinson = dsp.LevinsonSolver;
 hac = dsp.Autocorrelator;
 hac.MaximumLagSource = 'Property';
 hac.MaximumLag = 10; % Compute autocorrelation 
                      % lags between [0:10]
 hrc2lpc = dsp.RCToLPC;

 x = (1:100)';
 a = step(hac, x);
 k = step(hlevinson, a); % Compute reflection coefficients
 [A, P] = step(hrc2lpc, k);

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.
Was this topic helpful?