Signal processing · pulse shaping
Raised Cosine Filter: Roll-Off and Impulse Response
A raised cosine filter shapes a data pulse so that its spectrum is band-limited and its waveform passes through zero at every other symbol instant. That second property removes intersymbol interference: when the receiver samples at the right moments, tails of earlier pulses contribute nothing. One parameter, the roll-off factor β between 0 and 1, sets the trade between occupied bandwidth and how fast the tails die away. The name comes from the cosine term that is raised by an offset of one so that it never goes negative, which is the same shape as a Hann-type raised cosine window. The design is a staple of digital communications and of signal processing generally.
The frequency response
Let T be the symbol period. The response is
- H(f) = T for |f| ≤ (1 − β)/(2T)
- H(f) = (T/2)·[1 + cos( (πT/β)·(|f| − (1 − β)/(2T)) )] for (1 − β)/(2T) < |f| ≤ (1 + β)/(2T)
- H(f) = 0 for larger |f|
The response is flat in the middle, then rolls off in a half-cosine arc, then vanishes. The total one-sided bandwidth is (1 + β)/(2T).
For T = 1 and β = 0.5 the flat part ends at (1 − 0.5)/2 = 0.25 and the response reaches zero at (1 + 0.5)/2 = 0.75. At the midpoint f = 0.5 the cosine argument is (π/0.5)·(0.5 − 0.25) = π/2, so H = (1/2)(1 + 0) = 0.5. The value at f = 1/(2T), the Nyquist point of the symbol rate, is always T/2 for every β, because the arc is symmetric about it.
The impulse response
The inverse transform is
h(t) = sinc(t/T) · cos(πβt/T) / (1 − (2βt/T)²)
The first factor is the sinc function, with zeros at every nonzero integer multiple of T. The second factor cuts the tails: the denominator grows with t², so the pulse decays like 1/t³ instead of the 1/t of a plain sinc, a faster fall for any β above 0.
Worked values for T = 1, β = 0.5:
- h(0) = 1
- h(0.5) = sinc(0.5) · cos(π/4) / (1 − 0.25) = 0.6366 × 0.7071 / 0.75 = 0.6002
- h(1.5) = sinc(1.5) · cos(3π/4) / (1 − 2.25) = (−0.2122)(−0.7071) / (−1.25) = −0.1200
The denominator vanishes at t = T/(2β), which is t = 1 here. The expression is 0/0 there and must be replaced by its limit, (π/4)·sinc(1/(2β)). With β = 0.5 that is (π/4)·sinc(1) = 0, in agreement with the zero crossing. The same singularity occurs in code and gives not-a-number if left alone, so a careful implementation tests for it.
Why the zeros matter
A pulse train is a sum of shifted copies of h(t), one per symbol. At a sampling instant t = mT, the copy for symbol m contributes h(0) = 1 and every other copy contributes h(kT) with k a nonzero integer, which is 0. The sample therefore equals the symbol, with no leakage from neighbors. This is the Nyquist criterion for zero intersymbol interference, and the raised cosine is its best-known solution.
In practice the response is split in two, each half the square root of the full shape. The transmitter applies one root raised cosine filter and the receiver applies the same one. The product is the raised cosine and the receiver filter is matched to the pulse, which maximizes signal-to-noise ratio in the presence of additive white Gaussian noise.
Choosing the roll-off
A small β saves bandwidth, with β = 0 giving the ideal rectangle and the slow sinc. A large β widens the band, up to a factor of 2 at β = 1, and shrinks the tails so timing errors cost less. Values around 0.2 to 0.35 are common choices when spectrum is expensive. At β = 0.35 the occupied bandwidth is 1.35 times the minimum.
Building the filter
In a finite implementation h(t) is sampled at several points per symbol, truncated to a span of some symbols on each side and often tapered with a window such as the Blackman window, then applied by convolution. The span and the oversampling factor determine how closely the real response follows the ideal one. For design from a loss specification instead, see analog filter design.
Pseudocode
function raised_cosine(t, T, beta):
x = t / T
if beta > 0 and abs(2*beta*x) == 1:
return (pi/4) * sinc(1 / (2*beta))
return sinc(x) * cos(pi*beta*x) / (1 - (2*beta*x)^2)