DSP Blockset
  Go to block:
    Search    Help Desk 
Time-Varying Lattice Filter    See Also

Apply a variable lattice filter to the input.

Library

Filter Realizations, in Filtering

Description

The Time-Varying Lattice Filter block applies a moving average (MA) or autoregressive (AR) lattice filter to the top input (In), which must be a discrete-time signal. The filter reflection coefficients are specified by the input to the MA or AR port, and can vary with time.

The Filter type parameter specifies whether the filter is an all-zero (FIR or MA) filter or all-pole (AR) filter.

For both designs, the coefficient vector inputs can change over time to alter the filter's response characteristics during the simulation.

Initial Conditions

In its default form, the filter initializes the internal filter states to zero, which is equivalent to assuming past inputs and outputs are zero. The block also accepts optional nonzero initial conditions for the filter delays. Note that the number of filter states (delay elements) per input channel is

The Initial conditions parameter may take one of four forms:

The Frame-based inputs parameter allows you to choose between sample-based and frame-based operation.

Sample-Based Operation

When the check box is not selected (default), the block assumes that the input is a 1-by-N sample vector or M-by-N sample matrix. Each of the N vector elements (or M*N matrix elements) is treated as an independent channel, and the block filters each channel over time.

Frame-Based Operation

When the Frame-based inputs check box is selected, the block assumes that the input is an M-by-N frame matrix. Each of the N frames in the matrix contains M sequential time samples from an independent signal. The illustration below shows a 6-by-4 matrix input:

The Number of channels parameter specifies the number of independent channels (columns), N, in the matrix, and the block filters each channel independently over time. Frame-based operation provides substantial increases in throughput rates, at the expense of greater model latency.

In frame-based operation, the Filter update rate parameter determines how frequently the block updates the filter coefficients (i.e., how often it checks the MA or AR input). There are two available options:

Note
If you expect to generate code for the Time-Varying Lattice Filter block using the Real-Time Workshop, you should ensure that inputs are contiguous in memory. See the Contiguous Copy block for more information.

Dialog Box

Filter type
The type of filter to apply: MA or AR. The MA or AR input port is enabled or disabled appropriately.
Initial conditions
The filter's initial conditions.
Frame-based inputs
Selects frame-based operation.
Number of channels
For frame-based operation, the number of channels (columns) in the input matrix.
Filter update rate
The frequency with which the block updates the filter coefficients; once per sample, or once per frame.

References

Oppenheim, A. V. and R. W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 1989.

Proakis, J. and D. Manolakis. Digital Signal Processing. 3rd ed. Englewood Cliffs, NJ: Prentice-Hall, 1996.

See Also

Discrete Filter (Simulink)
Direct-Form II Transpose Filter
Filter Realization Wizard
Time-Varying Direct-Form II Transpose Filter
filter (MATLAB)


[ Previous | Help Desk | Next ]