A
low-pass filter is an
electronic filterIn signal processing, a filter is a device or process that removes from a signal some unwanted component or feature. Filtering is a class of signal processing, the defining feature of filters being the complete or partial suppression of some aspect of the signal...
that passes low-
frequencyFrequency is the number of occurrences of a repeating event per unit time. It is also referred to as temporal frequency.The period is the duration of one cycle in a repeating event, so the period is the reciprocal of the frequency...
signalsIn the fields of communications, signal processing, and in electrical engineering more generally, a signal is any time-varying or spatial-varying quantity....
but attenuates (reduces the
amplitudeAmplitude is the magnitude of change in the oscillating variable with each oscillation within an oscillating system. For example, sound waves in air are oscillations in atmospheric pressure and their amplitudes are proportional to the change in pressure during one oscillation...
of) signals with frequencies higher than the
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
. The actual amount of attenuation for each frequency varies from filter to filter. It is sometimes called a
high-cut filter, or
treble cut filter when used in audio applications. A low-pass filter is the opposite of a
high-pass filterA high-pass filter is a device that passes high frequencies and attenuates frequencies lower than its cutoff frequency. A high-pass filter is usually modeled as a linear time-invariant system...
. A
band-pass filterA band-pass filter is a device that passes frequencies within a certain range and rejects frequencies outside that range.Optical band-pass filters are of common usage....
is a combination of a low-pass and a high-pass.
Low-pass filters exist in many different forms, including electronic circuits (such as a
hiss filter used in audio),
anti-aliasing filterAn anti-aliasing filter is a filter used before a signal sampler, to restrict the bandwidth of a signal to approximately satisfy the sampling theorem....
s for conditioning signals prior to analog-to-digital conversion,
digital filterIn electronics, computer science and mathematics, a digital filter is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal. This is in contrast to the other major type of electronic filter, the analog filter, which is...
s for smoothing sets of data, acoustic barriers, blurring of images, and so on. The moving average operation used in fields such as finance is a particular kind of low-pass filter, and can be analyzed with the same
signal processingSignal processing is an area of systems engineering, electrical engineering and applied mathematics that deals with operations on or analysis of signals, in either discrete or continuous time...
techniques as are used for other low-pass filters. Low-pass filters provide a smoother form of a signal, removing the short-term fluctuations, and leaving the longer-term trend.
An optical filter could correctly be called low-pass, but conventionally is described as "longpass" (low frequency is long wavelength), to avoid confusion.
Acoustic
A stiff physical barrier tends to reflect higher sound frequencies, and so acts as a low-pass filter for transmitting sound. When music is playing in another room, the low notes are easily heard, while the high notes are attenuated.
Electronic
In an electronic low-pass RC filter for voltage signals, high frequencies contained in the input signal are attenuated but the filter has little attenuation below its
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
which is determined by its
RC time constantIn an RC circuit, the value of the time constant is equal to the product of the circuit resistance and the circuit capacitance , i.e. \tau = R × C. It is the time required to charge the capacitor, through the resistor, to 63.2 percent of full charge; or to discharge it to 36.8 percent of its...
.
For current signals, a similar circuit using a resistor and capacitor in parallel works in a similar manner.
See current divider discussed in more detail below.
Electronic low-pass filters are used to drive
subwooferA subwoofer is a woofer, or a complete loudspeaker, which is dedicated to the reproduction of low-pitched audio frequencies known as the "bass". The typical frequency range for a subwoofer is about 20–200 Hz for consumer products, below 100 Hz for professional live sound, and below...
s and other types of
loudspeakerA loudspeaker is an electroacoustic transducer that produces sound in response to an electrical audio signal input. Non-electrical loudspeakers were developed as accessories to telephone systems, but electronic amplification by vacuum tube made loudspeakers more generally useful...
s, to block high pitches that they can't efficiently broadcast.
Radio transmitters use low-pass filters to block
harmonicA harmonic of a wave is a component frequency of the signal that is an integer multiple of the fundamental frequency, i.e. if the fundamental frequency is f, the harmonics have frequencies 2f, 3f, 4f, . . . etc. The harmonics have the property that they are all periodic at the fundamental...
emissions which might cause interference with other communications.
The tone knob found on many
electric guitarsElectric Guitars were formed early in 1980 by Neil Davenport and Richard Hall who were both studying English at Bristol University. The band soon increased to a five-man line-up, with Andy Saunders , Matt Salt and Dick Truscott , they also later added two backing singers: Sara and Wendy...
is a low-pass filter used to reduce the amount of treble in the sound.
An
integratorAn integrator is a device to perform the mathematical operation known as integration, a fundamental operation in calculus.The integration function is often part of engineering, physics, mechanical, chemical and scientific calculations....
is another example of a single time constant low-pass filter.
Telephone lines fitted with DSL splitters use low-pass and
high-passA high-pass filter is a device that passes high frequencies and attenuates frequencies lower than its cutoff frequency. A high-pass filter is usually modeled as a linear time-invariant system...
filters to separate
DSLDigital subscriber line is a family of technologies that provides digital data transmission over the wires of a local telephone network. DSL originally stood for digital subscriber loop. In telecommunications marketing, the term DSL is widely understood to mean Asymmetric Digital Subscriber Line ,...
and
POTSPlain old telephone service is the voice-grade telephone service that remains the basic form of residential and small business service connection to the telephone network in many parts of the world....
signals sharing the same
pairTwisted pair cabling is a type of wiring in which two conductors are twisted together for the purposes of canceling out electromagnetic interference from external sources; for instance, electromagnetic radiation from unshielded twisted pair cables, and crosstalk between neighboring pairs...
of wires.
Low-pass filters also play a significant role in the sculpting of sound for
electronic musicElectronic music is music that employs electronic musical instruments and electronic music technology in its production. In general a distinction can be made between sound produced using electromechanical means and that produced using electronic technology. Examples of electromechanical sound...
as created by analogue synthesisers.
See subtractive synthesisSubtractive synthesis is a method of sound synthesis in which partials of an audio signal are attenuated by a filter to alter the timbre of the sound...
.
Ideal and real filters
An
ideal low-pass filterIn signal processing, a sinc filter is an idealized filter that removes all frequency components above a given bandwidth, leaves the low frequencies alone, and has linear phase...
completely eliminates all frequencies above the
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
while passing those below unchanged: its
frequency responseFrequency response is the quantitative measure of the output spectrum of a system or device in response to a stimulus, and is used to characterize the dynamics of the system. It is a measure of magnitude and phase of the output as a function of frequency, in comparison to the input...
is a
rectangular function, and is a brick-wall filter. The transition region present in practical filters does not exist in an ideal filter. An ideal low-pass filter can be realized mathematically (theoretically) by multiplying a signal by the rectangular function in the frequency domain or, equivalently,
convolutionIn mathematics and, in particular, functional analysis, convolution is a mathematical operation on two functions f and g, producing a third function that is typically viewed as a modified version of one of the original functions. Convolution is similar to cross-correlation...
with its
impulse responseIn signal processing, the impulse response, or impulse response function , of a dynamic system is its output when presented with a brief input signal, called an impulse. More generally, an impulse response refers to the reaction of any dynamic system in response to some external change...
, a
sinc function, in the time domain.
However, the ideal filter is impossible to realize without also having signals of infinite extent in time, and so generally needs to be approximated for real ongoing signals, because the sinc function's support region extends to all past and future times. The filter would therefore need to have infinite delay, or knowledge of the infinite future and past, in order to perform the convolution. It is effectively realizable for pre-recorded digital signals by assuming extensions of zero into the past and future, or more typically by making the signal repetitive and using Fourier analysis.
Real filters for
real-timeIn computer science, real-time computing , or reactive computing, is the study of hardware and software systems that are subject to a "real-time constraint"— e.g. operational deadlines from event to system response. Real-time programs must guarantee response within strict time constraints...
applications approximate the ideal filter by truncating and
windowingIn signal processing, a window function is a mathematical function that is zero-valued outside of some chosen interval. For instance, a function that is constant inside the interval and zero elsewhere is called a rectangular window, which describes the shape of its graphical representation...
the infinite impulse response to make a
finite impulse responseA finite impulse response filter is a type of a signal processing filter whose impulse response is of finite duration, because it settles to zero in finite time. This is in contrast to infinite impulse response filters, which have internal feedback and may continue to respond indefinitely...
; applying that filter requires delaying the signal for a moderate period of time, allowing the computation to "see" a little bit into the future. This delay is manifested as
phase shiftPhase in waves is the fraction of a wave cycle which has elapsed relative to an arbitrary point.-Formula:The phase of an oscillation or wave refers to a sinusoidal function such as the following:...
. Greater accuracy in approximation requires a longer delay.
An ideal low-pass filter results in
ringing artifactsIn signal processing, particularly digital image processing, ringing artifacts are artifacts that appear as spurious signals near sharp transitions in a signal. Visually, they appear as bands or "ghosts" near edges; audibly, they appear as "echos" near transients, particularly sounds from...
via the
Gibbs phenomenonIn mathematics, the Gibbs phenomenon, named after the American physicist J. Willard Gibbs, is the peculiar manner in which the Fourier series of a piecewise continuously differentiable periodic function behaves at a jump discontinuity: the nth partial sum of the Fourier series has large...
. These can be reduced or worsened by choice of windowing function, and the design and choice of real filters involves understanding and minimizing these artifacts. For example, "simple truncation [of sinc] causes severe ringing artifacts," in signal reconstruction, and to reduce these artifacts one uses window functions "which drop off more smoothly at the edges."
The
Whittaker–Shannon interpolation formulaThe Whittaker–Shannon interpolation formula or sinc interpolation is a method to reconstruct a continuous-time bandlimited signal from a set of equally spaced samples.-Definition:...
describes how to use a perfect low-pass filter to reconstruct a
continuous signalA continuous signal or a continuous-time signal is a varying quantity whose domain, which is often time, is a continuum . That is, the function's domain is an uncountable set. The function itself need not be continuous...
from a sampled
digital signalA digital signal is a physical signal that is a representation of a sequence of discrete values , for example of an arbitrary bit stream, or of a digitized analog signal...
. Real
digital-to-analog converterIn electronics, a digital-to-analog converter is a device that converts a digital code to an analog signal . An analog-to-digital converter performs the reverse operation...
s use real filter approximations.
Continuous-time low-pass filters
There are many different types of filter circuits, with different responses to changing frequency. The frequency response of a filter is generally represented using a
Bode plotA Bode plot is a graph of the transfer function of a linear, time-invariant system versus frequency, plotted with a log-frequency axis, to show the system's frequency response...
, and the filter is characterized by its
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
and rate of frequency
rolloffRoll-off is a term commonly used to describe the steepness of a transmission function with frequency, particularly in electrical network analysis, and most especially in connection with filter circuits in the transition between a passband and a stopband...
. In all cases, at the
cutoff frequency, the filter attenuates the input power by half or 3 dB. So the
order of the filter determines the amount of additional attenuation for frequencies higher than the cutoff frequency.
- A first-order filter, for example, will reduce the signal amplitude by half (so power reduces by a factor of 4), or , every time the frequency doubles (goes up one octave
In music, an octave is the interval between one musical pitch and another with half or double its frequency. The octave relationship is a natural phenomenon that has been referred to as the "basic miracle of music", the use of which is "common in most musical systems"...
); more precisely, the power rolloff approaches 20 dB per decade in the limit of high frequency. The magnitude Bode plot for a first-order filter looks like a horizontal line below the cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
, and a diagonal line above the cutoff frequency. There is also a "knee curve" at the boundary between the two, which smoothly transitions between the two straight line regions. If the transfer functionA transfer function is a mathematical representation, in terms of spatial or temporal frequency, of the relation between the input and output of a linear time-invariant system. With optical imaging devices, for example, it is the Fourier transform of the point spread function i.e...
of a first-order low-pass filter has a zeroIn complex analysis, a zero of a holomorphic function f is a complex number a such that f = 0.-Multiplicity of a zero:A complex number a is a simple zero of f, or a zero of multiplicity 1 of f, if f can be written asf=g\,where g is a holomorphic function g such that g is not zero.Generally, the...
as well as a pole, the Bode plot will flatten out again, at some maximum attenuation of high frequencies; such an effect is caused for example by a little bit of the input leaking around the one-pole filter; this one-pole–one-zero filter is still a first-order low-pass. See Pole–zero plot and RC circuitA resistor–capacitor circuit ', or RC filter or RC network, is an electric circuit composed of resistors and capacitors driven by a voltage or current source...
.
- A second-order filter attenuates higher frequencies more steeply. The Bode plot for this type of filter resembles that of a first-order filter, except that it falls off more quickly. For example, a second-order Butterworth filter
The Butterworth filter is a type of signal processing filter designed to have as flat a frequency response as possible in the passband so that it is also termed a maximally flat magnitude filter...
will reduce the signal amplitude to one fourth its original level every time the frequency doubles (so power decreases by 12 dB per octave, or 40 dB per decade). Other all-pole second-order filters may roll off at different rates initially depending on their Q factorIn physics and engineering the quality factor or Q factor is a dimensionless parameter that describes how under-damped an oscillator or resonator is, or equivalently, characterizes a resonator's bandwidth relative to its center frequency....
, but approach the same final rate of 12 dB per octave; as with the first-order filters, zeroes in the transfer function can change the high-frequency asymptote. See RLC circuitAn RLC circuit is an electrical circuit consisting of a resistor, an inductor, and a capacitor, connected in series or in parallel. The RLC part of the name is due to those letters being the usual electrical symbols for resistance, inductance and capacitance respectively...
.
- Third- and higher-order filters are defined similarly. In general, the final rate of power rolloff for an order-
all-pole filter is
dB per octave (i.e.,
dB per decade).
On any Butterworth filter, if one extends the horizontal line to the right and the diagonal line to the upper-left (the
asymptoteIn analytic geometry, an asymptote of a curve is a line such that the distance between the curve and the line approaches zero as they tend to infinity. Some sources include the requirement that the curve may not cross the line infinitely often, but this is unusual for modern authors...
s of the function), they will intersect at exactly the "cutoff frequency". The frequency response at the cutoff frequency in a first-order filter is 3 dB below the horizontal line. The various types of filters –
Butterworth filterThe Butterworth filter is a type of signal processing filter designed to have as flat a frequency response as possible in the passband so that it is also termed a maximally flat magnitude filter...
,
Chebyshev filterChebyshev filters are analog or digital filters having a steeper roll-off and more passband ripple or stopband ripple than Butterworth filters...
,
Bessel filterIn electronics and signal processing, a Bessel filter is a type of linear filter with a maximally flat group delay . Bessel filters are often used in audio crossover systems...
, etc. – all have different-looking "knee curves". Many second-order filters are designed to have "peaking" or
resonanceElectrical resonance occurs in an electric circuit at a particular resonance frequency where the imaginary parts of circuit element impedances or admittances cancel each other...
, causing their frequency response at the cutoff frequency to be
above the horizontal line.
See electronic filterElectronic filters are electronic circuits which perform signal processing functions, specifically to remove unwanted frequency components from the signal, to enhance wanted ones, or both...
for other types.
The meanings of 'low' and 'high' – that is, the
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
– depend on the characteristics of the filter. The term "low-pass filter" merely refers to the shape of the filter's response; a high-pass filter could be built that cuts off at a lower frequency than any low-pass filter – it is their responses that set them apart. Electronic circuits can be devised for any desired frequency range, right up through microwave frequencies (above 1 GHz) and higher.
Laplace notation
Continuous-time filters can also be described in terms of the
Laplace transform of their
impulse responseIn signal processing, the impulse response, or impulse response function , of a dynamic system is its output when presented with a brief input signal, called an impulse. More generally, an impulse response refers to the reaction of any dynamic system in response to some external change...
in a way that allows all of the characteristics of the filter to be easily analyzed by considering the pattern of poles and zeros of the Laplace transform in the complex plane (in discrete time, one can similarly consider the
Z-transformIn mathematics and signal processing, the Z-transform converts a discrete time-domain signal, which is a sequence of real or complex numbers, into a complex frequency-domain representation....
of the impulse response).
For example, a first-order low-pass filter can be described in Laplace notation as
where
s is the Laplace transform variable,
τ is the filter
time constantIn physics and engineering, the time constant, usually denoted by the Greek letter \tau , is the risetime characterizing the response to a time-varying input of a first-order, linear time-invariant system.Concretely, a first-order LTI system is a system that can be modeled by a single first order...
, and
K is the filter
passbandA passband is the range of frequencies or wavelengths that can pass through a filter without being attenuated.A bandpass filtered signal , is known as a bandpass signal, as opposed to a baseband signal....
gainIn electronics, gain is a measure of the ability of a circuit to increase the power or amplitude of a signal from the input to the output. It is usually defined as the mean ratio of the signal output of a system to the signal input of the same system. It may also be defined on a logarithmic scale,...
.
Passive electronic realization
One simple electrical circuit that will serve as a low-pass filter consists of a
resistorA linear resistor is a linear, passive two-terminal electrical component that implements electrical resistance as a circuit element.The current through a resistor is in direct proportion to the voltage across the resistor's terminals. Thus, the ratio of the voltage applied across a resistor's...
in series with a
loadIf an electric circuit has a well-defined output terminal, the circuit connected to this terminal is the load....
, and a
capacitorA capacitor is a passive two-terminal electrical component used to store energy in an electric field. The forms of practical capacitors vary widely, but all contain at least two electrical conductors separated by a dielectric ; for example, one common construction consists of metal foils separated...
in parallel with the load. The capacitor exhibits reactance, and blocks low-frequency signals, causing them to go through the load instead. At higher frequencies the reactance drops, and the capacitor effectively functions as a short circuit. The combination of resistance and capacitance gives you the
time constantIn physics and engineering, the time constant, usually denoted by the Greek letter \tau , is the risetime characterizing the response to a time-varying input of a first-order, linear time-invariant system.Concretely, a first-order LTI system is a system that can be modeled by a single first order...
of the filter

(represented by the Greek letter
tauTau is the 19th letter of the Greek alphabet. In the system of Greek numerals it has a value of 300.The name in English is pronounced , but in modern Greek it is...
). The break frequency, also called the turnover frequency or
cutoff frequencyIn physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.Typically in electronic systems such as filters and...
(in hertz), is determined by the time constant:
or equivalently (in radians per second):
One way to understand this circuit is to focus on the time the capacitor takes to charge. It takes time to charge or discharge the capacitor through that resistor:
- At low frequencies, there is plenty of time for the capacitor to charge up to practically the same voltage as the input voltage.
- At high frequencies, the capacitor only has time to charge up a small amount before the input switches direction. The output goes up and down only a small fraction of the amount the input goes up and down. At double the frequency, there's only time for it to charge up half the amount.
Another way to understand this circuit is with the idea of reactance at a particular frequency:
- Since DC
Direct current is the unidirectional flow of electric charge. Direct current is produced by such sources as batteries, thermocouples, solar cells, and commutator-type electric machines of the dynamo type. Direct current may flow in a conductor such as a wire, but can also flow through...
cannot flow through the capacitor, DC input must "flow out" the path marked
(analogous to removing the capacitor).
- Since AC
In alternating current the movement of electric charge periodically reverses direction. In direct current , the flow of electric charge is only in one direction....
flows very well through the capacitor — almost as well as it flows through solid wire — AC input "flows out" through the capacitor, effectively short circuitA short circuit in an electrical circuit that allows a current to travel along an unintended path, often where essentially no electrical impedance is encountered....
ing to ground (analogous to replacing the capacitor with just a wire).
The capacitor is not an "on/off" object (like the block or pass fluidic explanation above). The capacitor will variably act between these two extremes. It is the
Bode plotA Bode plot is a graph of the transfer function of a linear, time-invariant system versus frequency, plotted with a log-frequency axis, to show the system's frequency response...
and
frequency responseFrequency response is the quantitative measure of the output spectrum of a system or device in response to a stimulus, and is used to characterize the dynamics of the system. It is a measure of magnitude and phase of the output as a function of frequency, in comparison to the input...
that show this variability.
Active electronic realization
Another type of electrical circuit is an
active low-pass filter.
In the
operational amplifierAn operational amplifier is a DC-coupled high-gain electronic voltage amplifier with a differential input and, usually, a single-ended output...
circuit shown in the figure, the cutoff frequency (in
hertzThe hertz is the SI unit of frequency defined as the number of cycles per second of a periodic phenomenon. One of its most common uses is the description of the sine wave, particularly those used in radio and audio applications....
) is defined as:
or equivalently (in radians per second):
The gain in the passband is −
R2/
R1, and the
stopbandA stopband is a band of frequencies, between specified limits, through which a circuit, such as a filter or telephone circuit, does not allow signals to pass, or the attenuation is above the required stopband attenuation level...
drops off at −6 dB per octave as it is a first-order filter.
Discrete-time realization
The effect of a low-pass filter can be simulated on a computer by analyzing its behavior in the time domain, and then
discretizingA discrete signal or discrete-time signal is a time series consisting of a sequence of qualities...
the model.
From the circuit diagram to the right, according to
Kirchoff's LawsKirchhoff's circuit laws are two equalities that deal with the conservation of charge and energy in electrical circuits, and were first described in 1845 by Gustav Kirchhoff...
and the definition of
capacitanceIn electromagnetism and electronics, capacitance is the ability of a capacitor to store energy in an electric field. Capacitance is also a measure of the amount of electric potential energy stored for a given electric potential. A common form of energy storage device is a parallel-plate capacitor...
:
where

is the charge stored in the capacitor at time

. Substituting equation into equation gives

, which can be substituted into equation so that:
This equation can be discretized. For simplicity, assume that samples of the input and output are taken at evenly-spaced points in time separated by

time. Let the samples of

be represented by the sequence

, and let

be represented by the sequence

which correspond to the same points in time. Making these substitutions:
And rearranging terms gives the
recurrence relationIn mathematics, a recurrence relation is an equation that recursively defines a sequence, once one or more initial terms are given: each further term of the sequence is defined as a function of the preceding terms....
That is, this discrete-time implementation of a simple RC low-pass filter is the
exponentially-weighted moving averageExponential smoothing is a technique that can be applied to time series data, either to produce smoothed data for presentation, or to make forecasts. The time series data themselves are a sequence of observations. The observed phenomenon may be an essentially random process, or it may be an...
By definition, the
smoothing factor 
. The expression for

yields the equivalent
time constantIn physics and engineering, the time constant, usually denoted by the Greek letter \tau , is the risetime characterizing the response to a time-varying input of a first-order, linear time-invariant system.Concretely, a first-order LTI system is a system that can be modeled by a single first order...

in terms of the sampling period

and smoothing factor

:
If

, then the

time constant is equal to the sampling period. If

, then

is significantly larger than the sampling interval, and

.
Algorithmic implementation
The filter recurrence relation provides a way to determine the output samples in terms of the input samples and the preceding output. The following
pseudocodeIn computer science and numerical computation, pseudocode is a compact and informal high-level description of the operating principle of a computer program or other algorithm. It uses the structural conventions of a programming language, but is intended for human reading rather than machine reading...
algorithm will simulate the effect of a low-pass filter on a series of digital samples:
// Return RC low-pass filter output samples, given input samples,
// time interval
dt, and time constant
RC
function lowpass(
real[0..n] x,
real dt,
real RC)
var real[0..n] y
var real α = dt / (RC + dt)
y[0] := x[0]
for i
from 1
to n
y[i] = α * x[i] + (1-α) * y[i-1]
return y
The loop that calculates each of the
n outputs can be refactored into the equivalent:
for i
from 1
to n
y[i] = y[i-1] + α * (x[i] - y[i-1])
That is, the change from one filter output to the next is
proportionalIn mathematics, two variable quantities are proportional if one of them is always the product of the other and a constant quantity, called the coefficient of proportionality or proportionality constant. In other words, are proportional if the ratio \tfrac yx is constant. We also say that one...
to the difference between the previous output and the next input. This
exponential smoothingExponential smoothing is a technique that can be applied to time series data, either to produce smoothed data for presentation, or to make forecasts. The time series data themselves are a sequence of observations. The observed phenomenon may be an essentially random process, or it may be an...
property matches the
exponentialIn mathematics, the exponential function is the function ex, where e is the number such that the function ex is its own derivative. The exponential function is used to model a relationship in which a constant change in the independent variable gives the same proportional change In mathematics,...
decay seen in the continuous-time system. As expected, as the
time constantIn physics and engineering, the time constant, usually denoted by the Greek letter \tau , is the risetime characterizing the response to a time-varying input of a first-order, linear time-invariant system.Concretely, a first-order LTI system is a system that can be modeled by a single first order...

increases, the discrete-time smoothing parameter

decreases, and the output samples

respond more slowly to a change in the input samples

– the system will have more
inertiaInertia is the resistance of any physical object to a change in its state of motion or rest, or the tendency of an object to resist any change in its motion. It is proportional to an object's mass. The principle of inertia is one of the fundamental principles of classical physics which are used to...
. This filter is an infinite-impulse-response (IIR) single-pole lowpass filter.
See also
- Baseband
In telecommunications and signal processing, baseband is an adjective that describes signals and systems whose range of frequencies is measured from close to 0 hertz to a cut-off frequency, a maximum bandwidth or highest signal frequency; it is sometimes used as a noun for a band of frequencies...
- Band-stop filter
In signal processing, a band-stop filter or band-rejection filter is a filter that passes most frequencies unaltered, but attenuates those in a specific range to very low levels. It is the opposite of a band-pass filter...
External links