Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Linear filter

From Wikipedia, the free encyclopedia
Filter that has a linear response
This article includes a list ofgeneral references, butit lacks sufficient correspondinginline citations. Please help toimprove this article byintroducing more precise citations.(March 2011) (Learn how and when to remove this message)

Linear filters process time-varying input signals to produce output signals, subject to the constraint oflinearity. In most cases these linear filters are alsotime invariant (orshift invariant) in which case they can be analyzed exactly usingLTI ("linear time-invariant") system theory revealing theirtransfer functions in the frequency domain and theirimpulse responses in the time domain. Real-time implementations of such linearsignal processing filters in the time domain are inevitablycausal, an additional constraint on their transfer functions. An analog electronic circuit consisting only of linear components (resistors, capacitors, inductors, and linear amplifiers) will necessarily fall in this category, as will comparable mechanical systems ordigital signal processing systems containing only linear elements. Since linear time-invariant filters can be completely characterized by their response tosinusoids of different frequencies (theirfrequency response), they are sometimes known as frequency filters.

Non real-time implementations of linear time-invariant filters need not be causal. Filters of more than one dimension are also used such as inimage processing. The general concept of linear filtering also extends into other fields and technologies such asstatistics,data analysis, andmechanical engineering.

Impulse response and transfer function

[edit]

Alinear time-invariant (LTI) filter can be uniquely specified by itsimpulse responseh, and the output of any filter is mathematically expressed as theconvolution of the input with that impulse response. Thefrequency response, given by the filter'stransfer functionH(ω){\displaystyle H(\omega )}, is an alternative characterization of the filter. Typical filter design goals are to realize a particular frequency response, that is, the magnitude of the transfer function|H(ω)|{\displaystyle |H(\omega )|}; the importance of thephase of the transfer function varies according to the application, inasmuch as the shape of a waveform can be distorted to a greater or lesser extent in the process of achieving a desired (amplitude) response in the frequency domain. The frequency response may be tailored to, for instance, eliminate unwanted frequency components from an inputsignal, or to limit an amplifier to signals within a particular band of frequencies.

Theimpulse responseh of a linear time-invariant causal filter specifies the output that the filter would produce if it were to receive an input consisting of a single impulse at time 0. An "impulse" in a continuous time filter means aDirac delta function; in adiscrete time filter theKronecker delta function would apply. The impulse response completely characterizes the response of any such filter, inasmuch as any possible input signal can be expressed as a (possibly infinite) combination of weighted delta functions. Multiplying the impulse response shifted in time according to the arrival of each of these delta functions by the amplitude of each delta function, and summing these responses together (according to thesuperposition principle, applicable to all linear systems) yields the output waveform.

Mathematically this is described as theconvolution of a time-varying input signalx(t) with the filter'simpulse responseh, defined as:

y(t)=0Tx(tτ)h(τ)dτ{\displaystyle y(t)=\int _{0}^{T}x(t-\tau )\,h(\tau )\,d\tau } or
yk=i=0Nxkihi{\displaystyle y_{k}=\sum _{i=0}^{N}x_{k-i}\,h_{i}}.

The first form is the continuous-time form, which describes mechanical and analog electronic systems, for instance. The second equation is a discrete-time version used, for example, by digital filters implemented in software, so-calleddigital signal processing. The impulse responseh completely characterizes any linear time-invariant (or shift-invariant in the discrete-time case) filter. The inputx is said to be "convolved" with the impulse responseh having a (possibly infinite) duration of timeT (or ofNsampling periods).

Filter design consists of finding a possible transfer function that can be implemented within certain practical constraints dictated by the technology or desired complexity of the system, followed by a practical design that realizes that transfer function using the chosen technology. The complexity of a filter may be specified according to theorder of the filter.

Among the time-domain filters we here consider, there are two general classes of filter transfer functions that can approximate a desired frequency response. Very different mathematical treatments apply to the design of filters termedinfinite impulse response (IIR) filters, characteristic of mechanical and analog electronics systems, andfinite impulse response (FIR) filters, which can be implemented bydiscrete time systems such as computers (then termeddigital signal processing).

Implementation issues

[edit]

Classical analog filters are IIR filters, and classical filter theory centers on the determination of transfer functions given by low orderrational functions, which can be synthesized using the same small number of reactive components.[1] Using digital computers, on the other hand, both FIR and IIR filters are straightforward to implement in software.

A digital IIR filter can generally approximate a desired filter response using less computing power than a FIR filter, however this advantage is more often unneeded given the increasing power of digital processors. The ease of designing and characterizing FIR filters makes them preferable to the filter designer (programmer) when ample computing power is available. Another advantage of FIR filters is that their impulse response can be made symmetric, which implies a response in the frequency domain that haszero phase at all frequencies (not considering a finite delay), which is absolutely impossible with any IIR filter.[2]

Frequency response

[edit]

The frequency response ortransfer function|H(ω)|{\displaystyle |H(\omega )|} of a filter can be obtained if the impulse response is known, or directly through analysis usingLaplace transforms, or in discrete-time systems theZ-transform. The frequency response also includes the phase as a function of frequency, however in many cases the phase response is of little or no interest. FIR filters can be made to have zero phase, but with IIR filters that is generally impossible. With most IIR transfer functions there are related transfer functions having a frequency response with the same magnitude but a different phase; in most cases the so-calledminimum phase transfer function is preferred.

Filters in the time domain are most often requested to follow a specified frequency response. Then, a mathematical procedure finds a filter transfer function that can be realized (within some constraints), and approximates the desired response to within some criterion. Common filter response specifications are described as follows:

  • Alow-pass filter passes low frequencies while blocking higher frequencies.
  • Ahigh-pass filter passes high frequencies.
  • Aband-pass filter passes a band (range) of frequencies.
  • Aband-stop filter passes high and low frequencies outside of a specified band.
  • Anotch filter has a null response at a particular frequency. This function may be combined with one of the above responses.
  • Anall-pass filter passes all frequencies equally well, but alters thegroup delay and phase relationship among them.
  • An equalization filter is not designed to fully pass or block any frequency, but instead to gradually vary the amplitude response as a function of frequency: filters used aspre-emphasis filters,equalizers, ortone controls are good examples.

FIR transfer functions

[edit]

Meeting a frequency response requirement with an FIR filter uses relatively straightforward procedures. In the most basic form, the desired frequency response itself can be sampled with a resolution ofΔf{\displaystyle \Delta f} and Fourier transformed to the time domain. This obtains the filter coefficientshi, which implements a zero phase FIR filter that matches the frequency response at the sampled frequencies used. To better match a desired response,Δf{\displaystyle \Delta f} must be reduced. However the duration of the filter's impulse response, and the number of terms that must be summed for each output value (according to the above discrete time convolution) is given byN=1/(ΔfT){\displaystyle N=1/(\Delta f\,T)} whereT is thesampling period of the discrete time system (N-1 is also termed theorder of an FIR filter). Thus the complexity of a digital filter and the computing time involved, grows inversely withΔf{\displaystyle \Delta f}, placing a higher cost on filter functions that better approximate the desired behavior. For the same reason, filter functions whose critical response is at lower frequencies (compared to thesampling frequency1/T) require a higher order, more computationally intensive FIR filter. An IIR filter can thus be much more efficient in such cases.

Elsewhere the reader may find further discussion of design methods forpractical FIR filter design.

IIR transfer functions

[edit]

Since classical analog filters are IIR filters, there has been a long history of studying the range of possible transfer functions implementing various of the above desired filter responses in continuous time systems. Usingtransforms it is possible to convert these continuous time frequency responses to ones that are implemented in discrete time, for use in digital IIR filters. The complexity of any such filter is given by theorder N, which describes the order of therational function describing the frequency response. The order N is of particular importance in analog filters, because an Nth order electronic filter requires N reactive elements (capacitors and/or inductors) to implement. If a filter is implemented using, for instance,biquad stages usingop-amps, N/2 stages are needed. In a digital implementation, the number of computations performed per sample is proportional to N. Thus the mathematical problem is to obtain the best approximation (in some sense) to the desired response using a smaller N, as we shall now illustrate.

Below are the frequency responses of several standard filter functions that approximate a desired response, optimized according to some criterion. These are all fifth-order low-pass filters, designed for a cutoff frequency of .5 in normalized units. Frequency responses are shown for theButterworth,Chebyshev,inverse Chebyshev, andelliptic filters.

As is clear from the image, the elliptic filter is sharper than the others, but at the expense ofripples in both its passband and stopband. The Butterworth filter has the poorest transition but has a more even response, avoiding ripples in either the passband or stopband. ABessel filter (not shown) has an even poorer transition in the frequency domain, but maintains the best phase fidelity of a waveform. Different applications emphasize different design requirements, leading to different choices among these (and other) optimizations, or requiring a filter of a higher order.

Low-pass filter implemented with a Sallen–Key topology

Example implementations

[edit]

A popular circuit implementing a second order active R-C filter is theSallen-Key design, whose schematic diagram is shown here. This topology can be adapted to produce low-pass, band-pass, and high pass filters.

A discrete-time FIR filter of orderN. The top part is anN-sample delay line; each delay step is denotedz−1.

An Nth order FIR filter can be implemented in a discrete time system using a computer program or specialized hardware in which the input signal is subject to N delay stages. The output of the filter is formed as the weighted sum of those delayed signals, as is depicted in the accompanying signal flow diagram. The response of the filter depends on the weighting coefficients denotedb0,b1, ....bN. For instance, if all of the coefficients were equal to unity, a so-calledboxcar function, then it would implement a low-pass filter with a low frequency gain of N+1 and a frequency response given by thesinc function. Superior shapes for the frequency response can be obtained using coefficients derived from a more sophisticated design procedure.

Mathematics of filter design

[edit]
Linear analog
electronic filters
See also:Network synthesis

LTI system theory describes lineartime-invariant (LTI) filters of all types. LTI filters can be completely described by theirfrequency response andphase response, the specification of which uniquely defines theirimpulse response, andvice versa. From a mathematical viewpoint, continuous-time IIR LTI filters may be described in terms of lineardifferential equations, and their impulse responses considered asGreen's functions of the equation. Continuous-time LTI filters may also be described in terms of theLaplace transform of their impulse response, which allows all of the characteristics of the filter to be analyzed by considering the pattern ofzeros and poles of their Laplace transform in thecomplex plane. Similarly, discrete-time LTI filters may be analyzed via theZ-transform of their impulse response.

Before the advent of computer filter synthesis tools, graphical tools such asBode plots andNyquist plots were extensively used as design tools. Even today, they are invaluable tools to understanding filter behavior. Reference books[3] had extensive plots of frequency response, phase response, group delay, and impulse response for various types of filters, of various orders. They also contained tables of values showing how to implement such filters as RLC ladders - very useful when amplifying elements were expensive compared to passive components. Such a ladder can also be designed to have minimal sensitivity to component variation a property hard to evaluate without computer tools.

Many different analog filter designs have been developed, each trying to optimise some feature of the system response. For practical filters, a custom design is sometimes desirable, that can offer the best tradeoff between different design criteria, which may include component count and cost, as well as filter response characteristics.

These descriptions refer to themathematical properties of the filter (that is, the frequency and phase response). These can beimplemented as analog circuits (for instance, using aSallen Key filter topology, a type ofactive filter), or as algorithms indigital signal processing systems.

Digital filters are much more flexible to synthesize and use than analog filters, where the constraints of the design permits their use. Notably, there is no need to consider component tolerances, and very high Q levels may be obtained.

FIR digital filters may be implemented by the directconvolution of the desired impulse response with the input signal.They can easily be designed to give amatched filter for any arbitrary pulse shape.

IIR digital filters are often more difficult to design, due to problems including dynamic range issues,quantization noise and instability.Typically digital IIR filters are designed as a series ofdigital biquad filters.

All low-pass second-order continuous-time filters have atransfer function given by

H(s)=Kω02s2+ω0Qs+ω02.{\displaystyle H(s)={\frac {K\omega _{0}^{2}}{s^{2}+{\frac {\omega _{0}}{Q}}s+\omega _{0}^{2}}}.}

All band-pass second-order continuous-time filters have a transfer function given by

H(s)=Kω0Qss2+ω0Qs+ω02.{\displaystyle H(s)={\frac {K{\frac {\omega _{0}}{Q}}s}{s^{2}+{\frac {\omega _{0}}{Q}}s+\omega _{0}^{2}}}.}

where

See also

[edit]

Notes and references

[edit]
  1. ^However, there are a few cases in which FIR filters directly process analog signals, involving non-feedback topologies and analog delay elements. An example is the discrete-timeanalog sampled filter, implemented using a so-calledbucket-brigade device clocked at a certain sampling rate, outputting copies of the input signal at different delays that can be combined with some weighting to realize an FIR filter. Electromechanical filters such asSAW filters can likewise implement FIR filter responses; these operate in continuous time and can thus be designed for higher frequencies.
  2. ^Outside of trivial cases, stable IIR filters with zero phase response are possible if they are not causal (and thus are unusable in real-time applications) or implementing transfer functions classified as unstable or "marginally stable" such as adouble integrator.
  3. ^A. Zverev,Handbook of Filter Synthesis, John Wiley and Sons, 1967,ISBN 0-471-98680-1

Further reading

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Linear_filter&oldid=1276396432"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp