DSP First - Chapter 5 - FIR Filters
A filter is a system that is designed to remove some component or modify some characteristic of a signal.
Several different things are introduced, including: - Finite impulse response (FIR) systems: refered as FIR filters, are systems for which each output value is the sum of a finite number of weighted values of the input sequence. - Difference equation: the basis of the input-output structure of the FIR filter as a time-domain computation. - Unit impulse response - Convolution - Linearity and time invariance - Discrete-time systems
Discrete-time systems
A discrete-time system is a computational process for transforming one sequence into another sequence. - , where is the input signal and is the output signal, both of which are discrete-time signals.
The running-average (moving-average) filter
- Difference equation, e.g., the general, causal, linear and time invariant difference equation: where and are the "dummy" counting indices for the sum and denotes the index of the sample of the output sequence.
- Causal and noncausal:
- Causal filter: a filter that uses only the present and past values of the input.
- Noncausal filter: a filter that uses future values of the input.
- Causal running averager or backward averager, similarly, we have the centralized running averager and the forward averager.
The general FIR filter
- The general causal difference equation where the coefficients are fixed numbers.
- , the order of the FIR filter
- , the number of filter coefficients is the filter length
- Eq. could be written as where showing the FIR is causal using the input start from the previous samples, i.e. , up to the current one
- For finite length input signal, i.e., for and a -order FIR filter (of length , i.e., involving samples), there would be transient component of the output including samples running onto and running off session. And the total output length would be .
The unit impulse response and convolution
The impulse response provides a complete characterization of the FIR filter. - Three new ideas introduced: - the unit impulse sequence - the unit impulse response - the convolution sum
Unit impulse sequence
- Unit impulse, or mathematically taken as the Kronecker delta function
- Express any sequence interm of delta function
- the unit impulse is a sequence
- is a summation of infinite impulse sequences
Unit impulse response sequence
- The output from a filter is called the response to the input.
- Unit impulse response represents the output when the input is the unit impulse .