Algorithm Search⌘K

Algorithmcore

Iterative clipping and filtering

Also called clipping and filtering.

Lowers the PAPR of an OFDM symbol by clipping the oversampled signal and removing the out-of-band regrowth with an FFT filter, repeated a few times. The receiver is unchanged.

Time
O(K L N log(L N)) worst
Space
O(L N) extra
Where
K = the number of iterations; L = the oversampling factor; N = the number of subcarriers
Properties
band limited outputchanges data symbolsdeterministicnot side information
Origin
Jean Armstrong, 2002

Iterative clipping and filtering lowers the peak-to-average power ratio (PAPR) of an OFDM symbol by changing the signal itself. The transmitter oversamples the symbol, limits the magnitude of each sample to a threshold AA and keeps its phase, and then removes the out-of-band power that the clipping created with an FFT filter. The filter brings part of the peaks back, so the two steps are repeated KK times, usually 2 to 4. The receiver needs no change and no side information, but the data symbols on the subcarriers change a little: the method trades in-band distortion for a lower peak. It differs from selected mapping and partial transmit sequences, which choose among exact versions of the symbol and add no distortion, and from tone reservation and active constellation extension, which put the peak-cancelling signal only where it does not hurt detection. The page uses the unitary DFT pair of the OFDM page, F[k,n]=e−j2πkn/N/NF[k, n] = e^{-j 2\pi k n / N}/\sqrt N, and jj is the imaginary unit.

In plain words

An amplifier can only handle signals up to some size. An OFDM signal is usually small, but now and then many tones add up to a tall spike. The simple fix is to cut every spike down to a fixed height. Cutting changes the shape of the signal, and the sharp corners spread power into the frequencies of the neighbors, which is not allowed. So the transmitter removes that outside power with a filter. The filter rounds the corners again, and some spikes grow back, smaller than before. Doing the cut and the filter a few times leaves a signal with lower peaks that still stays in its own band. The price is a small error on every data symbol, which the receiver sees as extra noise.

The problem

The input is one OFDM symbol, NN data symbols X[0],…,X[N−1]X[0], \ldots, X[N-1] with E∣X[k]∣2=1E|X[k]|^2 = 1, and a clipping ratio CR\mathrm{CR}, the threshold AA divided by the RMS amplitude of the symbol. The output is a signal that

  1. occupies only the NN subcarriers of the symbol, with no power in the bins outside them,
  2. has a lower PAPR than the original symbol, measured with oversampling, and
  3. carries values on the subcarriers that are close to XX, so that the receiver can detect the data with a small loss.

The PAPR must be measured on the oversampled signal. Clipping only the NN samples at the Nyquist rate leaves the peaks between them, and they come back after the digital-to-analog converter.

The algorithm

  1. ICF(X[0..N-1], L, CR, K)
  2. 1x ← √L · F_LNᴴ (X[0..N/2-1], 0, .., 0, X[N/2..N-1]) ▷ oversampled symbol, (L-1)N zeros in the middle
  3. 2A ← CR · √(mean of |x[m]|²) ▷ the threshold, fixed once
  4. 3for i ← 1 to K
  5. 4c[m] ← x[m] if |x[m]| ≤ A, else A · x[m] / |x[m]| ▷ clip the magnitude, keep the phase
  6. 5C ← FFT of c (size LN)
  7. 6C[k] ← 0 for N/2 ≤ k < LN - N/2 ▷ remove the out-of-band regrowth
  8. 7x ← inverse FFT of C (size LN)
  9. 8return x and its N in-band values ▷ bins 0..N/2-1 and LN-N/2..LN-1, scaled back

Line L1 builds the symbol LL times oversampled. The zeros go in the middle of the spectrum, because the indices k≥N/2k \ge N/2 of XX are the negative frequencies. Line L2 sets the threshold from the RMS amplitude of the original symbol and keeps it fixed; with CR=1.4\mathrm{CR} = 1.4 the clipping level A2A^2 is 1.961.96 times the mean power, 2.92 dB. Line L4 is the clip. It is a soft limiter: a sample below AA passes, a sample above AA keeps its phase and gets the magnitude AA. Lines L5 to L7 are the filter. In the frequency domain the clip has spread power into the bins between N/2N/2 and LN−N/2LN - N/2, the spectral regrowth, and line L6 deletes it. Line L7 returns to time. After the loop the signal is band-limited, and its in-band bins are the new subcarrier values that the transmitter sends; a transmitter that builds its OFDM symbol with an inverse FFT of size NN uses these values as its input.

Example

Take N=64N = 64 QPSK subcarriers, L=4L = 4 and CR=1.4\mathrm{CR} = 1.4. For one symbol (Python random.Random(1)), the PAPR and the clipped-off energy ∑m(∣x[m]∣−A)2\sum_m (|x[m]| - A)^2 over the samples above AA, at the start of each iteration, are:

iteration ii 0 1 2 3 4
PAPR before the clip 6.94 dB 5.33 dB 4.76 dB 4.46 dB 4.31 dB
clipped-off energy 4.96 0.565 0.148 0.050

The clipped-off energy falls at every step, as the correctness proof says it must. Over 300 random symbols (random.Random(2)), with the PAPR of the 4 times oversampled output and the in-band error E∣Xout[k]−X[k]∣2E|X_{\mathrm{out}}[k] - X[k]|^2:

CR\mathrm{CR} KK mean PAPR 99 percent of symbols below in-band error output power
0 7.28 dB 9.48 dB none 1.000
1.4 1 5.42 dB 6.52 dB -18.2 dB 0.858
1.4 2 4.84 dB 5.59 dB -16.2 dB 0.822
1.4 4 4.45 dB 5.16 dB -15.0 dB 0.796
1.4 8 4.16 dB 4.81 dB -14.4 dB 0.782
1.7 4 5.42 dB 5.97 dB -20.3 dB 0.914

Four iterations at CR=1.4\mathrm{CR} = 1.4 cut the 99 percent point by more than 4 dB. Each further iteration gains less and adds more in-band error. A higher CR\mathrm{CR} gives a smaller gain and a smaller error. The output power falls because the clip removes energy; the transmitter scales the signal back up before the amplifier, and the PAPR does not depend on that scale.

Correctness

The claim is that the output is exactly band-limited, and that the clipped-off energy never grows from one iteration to the next. The key fact is that line L4 is the projection onto the closed convex set SS of signals with ∣x[m]∣≤A|x[m]| \le A for every mm, and lines L5 to L7 are the orthogonal projection onto the subspace BB of band-limited signals. So the loop is a method of alternating projections between a convex set and a subspace. The invariant is x∈Bx \in B after each iteration. If did_i is the distance from xx to SS before clip ii, and eie_i is the energy that filter ii removes, then d0≥e0≥d1≥e1≥⋯d_0 \ge e_0 \ge d_1 \ge e_1 \ge \cdots, and both sequences tend to zero, because S∩BS \cap B contains at least the zero signal. The full proof, with the convergence of xx to a point of S∩BS \cap B, is in proofs/correctness.md. The theorem does not say that the PAPR falls to CR2\mathrm{CR}^2: the limit can have a lower mean power than the original symbol.

Proof: Clipping and filtering is an alternating projection, so the output is band-limited and the clipped-off energy never growsfull

Work in CLN\mathbb{C}^{LN} with the Euclidean norm ∥v∥2=∑m∣v[m]∣2\|v\|^2 = \sum_m |v[m]|^2, in exact arithmetic. Let

  • S={v:∣v[m]∣≤A for all m}S = \{ v : |v[m]| \le A \text{ for all } m \}, the signals that the amplifier passes without clipping, and
  • B={v:(FLNv)[k]=0 for N/2≤k<LN−N/2}B = \{ v : (F_{LN} v)[k] = 0 \text{ for } N/2 \le k < LN - N/2 \}, the band-limited signals, which are the oversampled OFDM symbols LFLNHZ\sqrt L F_{LN}^H Z of line L1.

SS is closed and convex, since it is a product of closed discs. BB is a linear subspace. Write x0x_0 for the symbol of line L1, and xix_{i} for the value of xx after iteration ii (lines L4 to L7). Let di=dist⁡(xi,S)d_i = \operatorname{dist}(x_i, S) and cic_i be the clipped signal of line L4 in iteration i+1i + 1.

Lemma 1 (line L4 is the projection onto SS). For every vv, the clipped signal cc with c[m]=v[m]c[m] = v[m] if ∣v[m]∣≤A|v[m]| \le A and c[m]=A v[m]/∣v[m]∣c[m] = A\, v[m] / |v[m]| otherwise is the unique point of SS nearest to vv, and ∥v−c∥2=∑∣v[m]∣>A(∣v[m]∣−A)2\|v - c\|^2 = \sum_{|v[m]| > A} (|v[m]| - A)^2.

Proof. The norm is a sum over mm and SS is a product of discs, so the nearest point can be found one coordinate at a time. For one coordinate, the nearest point of the disc ∣z∣≤A|z| \le A to v[m]v[m] is v[m]v[m] itself if it is inside. Otherwise, for ∣z∣≤A|z| \le A, the triangle inequality gives ∣v[m]−z∣≥∣v[m]∣−∣z∣≥∣v[m]∣−A|v[m] - z| \ge |v[m]| - |z| \ge |v[m]| - A, with equality only for z=Av[m]/∣v[m]∣z = A v[m]/|v[m]|. □\square

Lemma 2 (lines L5 to L7 are the orthogonal projection onto BB). For every cc, the signal PBcP_B c obtained by an FFT, zeroing the out-of-band bins and an inverse FFT, is the unique point of BB nearest to cc, and c−PBcc - P_B c is orthogonal to BB.

Proof. FLN/LNF_{LN}/\sqrt{LN} is unitary, so it preserves distances. In the frequency domain, BB is the set of vectors that are zero on the out-of-band bins, a coordinate subspace. The nearest point of a coordinate subspace keeps the free coordinates and sets the others to zero, and the difference has its support on the zeroed bins, so it is orthogonal to the subspace. Line L7 uses the exact inverse of the FFT of line L5, so the result is this nearest point in time. □\square

So one iteration is xi+1=PBPSxix_{i+1} = P_B P_S x_i, and ci=PSxic_i = P_S x_i.

Theorem 1 (band limit). For every i≥0i \ge 0, xi∈Bx_i \in B. The final xx has no energy outside the NN subcarriers of the symbol, and line L8 returns its NN in-band values, from which line L1 gives back the same xx.

Proof. x0∈Bx_0 \in B by construction, and xi+1=PBci∈Bx_{i+1} = P_B c_i \in B by Lemma 2. Line L1 applied to the in-band values of a vector of BB rebuilds that vector, because its out-of-band bins are zero. □\square

Theorem 2 (the clipped-off energy never grows). With ei=∥ci−xi+1∥=dist⁡(ci,B)e_i = \|c_i - x_{i+1}\| = \operatorname{dist}(c_i, B), the energy that the filter removes,

d0≥e0≥d1≥e1≥d2≥⋯ .d_0 \ge e_0 \ge d_1 \ge e_1 \ge d_2 \ge \cdots.

Proof. ei=dist⁡(ci,B)≤∥ci−xi∥=die_i = \operatorname{dist}(c_i, B) \le \|c_i - x_i\| = d_i, because xi∈Bx_i \in B (Theorem 1) and ∥ci−xi∥=dist⁡(xi,S)\|c_i - x_i\| = \operatorname{dist}(x_i, S) by Lemma 1. And di+1=dist⁡(xi+1,S)≤∥xi+1−ci∥=eid_{i+1} = \operatorname{dist}(x_{i+1}, S) \le \|x_{i+1} - c_i\| = e_i, because ci∈Sc_i \in S. □\square

By Lemma 1, di2d_i^2 is the energy ∑(∣xi[m]∣−A)2\sum (|x_i[m]| - A)^2 above the threshold, the quantity that the implementation returns for each iteration.

Theorem 3 (convergence). di→0d_i \to 0, and the sequence xix_i converges to a point of S∩BS \cap B.

Proof. The set S∩BS \cap B is not empty, since it contains 00. Fix any z∈S∩Bz \in S \cap B. For a projection PP onto a closed convex set that contains zz, the projection inequality Re⟨v−Pv,z−Pv⟩≤0\mathrm{Re}\langle v - Pv, z - Pv \rangle \le 0 gives

∥Pv−z∥2≤∥v−z∥2−∥v−Pv∥2.\|Pv - z\|^2 \le \|v - z\|^2 - \|v - Pv\|^2.

Apply it to PSP_S at xix_i and to PBP_B at cic_i:

∥xi+1−z∥2≤∥xi−z∥2−di2−ei2.\|x_{i+1} - z\|^2 \le \|x_i - z\|^2 - d_i^2 - e_i^2.

Summing over ii gives ∑i(di2+ei2)≤∥x0−z∥2\sum_i (d_i^2 + e_i^2) \le \|x_0 - z\|^2, so di→0d_i \to 0 and ei→0e_i \to 0. The sequence ∥xi−z∥\|x_i - z\| does not increase, so (xi)(x_i) is bounded and has a convergent subsequence xit→x∗x_{i_t} \to x^\ast. Since xit∈Bx_{i_t} \in B and dist⁡(xit,S)→0\operatorname{dist}(x_{i_t}, S) \to 0 and both sets are closed, x∗∈S∩Bx^\ast \in S \cap B. Take z=x∗z = x^\ast: ∥xi−x∗∥\|x_i - x^\ast\| does not increase and has a subsequence that tends to 00, so the whole sequence tends to x∗x^\ast. □\square

What the theorems do not say. The limit lies in S∩BS \cap B, so its peak amplitude is at most AA. But its mean power can be smaller than that of x0x_0, so its PAPR relative to its own mean power can still be above A2A^2 divided by the original mean power. And its in-band values differ from the data XX: the method trades in-band distortion for a lower peak. The theorems hold in exact arithmetic; in floating point each step adds a rounding error of the order of the machine precision times ∥xi∥\|x_i\|.

Complexity

Each iteration does one FFT and one inverse FFT of size LNLN, plus O(LN)O(LN) work for the clip and the filter, so KK iterations cost O(KLNlog⁡(LN))O(K L N \log(LN)) operations per OFDM symbol in the real-RAM model, with the FFT. The memory is O(LN)O(LN). For N=64N = 64, L=4L = 4 and K=4K = 4 this is 8 transforms of size 256 per symbol, against 1 transform of size 64 for plain OFDM.

Properties

  • No side information. The receiver demodulates as usual. The clipping error looks like extra noise on each subcarrier.
  • Band-limited output. The out-of-band bins are exactly zero after each filter, so the method does not spoil the spectrum mask, unlike plain clipping.
  • In-band distortion. The subcarrier values move away from XX, by about −15-15 dB in the example. This raises the error rate, mostly for dense constellations such as 64-QAM, whose decision regions are small.
  • Diminishing returns. The gain per iteration falls quickly; most of it comes in the first 2 to 4 iterations.
  • Data-independent cost. The work per symbol is fixed by KK, LL and NN, with no search.

Variants and improvements

  • One clip and one filter. K=1K = 1, as in Li and Cimini (1998). It is the cheapest form and leaves the highest peaks.
  • Filtering with a time-domain filter. A low-pass FIR filter instead of the FFT mask. It does not remove the regrowth exactly and adds delay.
  • Clipping with a window. Peak windowing multiplies the signal near each peak by a smooth window instead of a hard limit. The spectral regrowth is smaller, so less filtering is needed.
  • A different filter mask. The filter can keep part of the regrowth in a guard band, or shape the in-band error so that it falls on subcarriers with robust modulation.
  • Receiver-side recovery. Because the clipping is a known function of the data, an iterative receiver can estimate the clipping error from its decisions and subtract it.
  • Distortion only where it is allowed. Active constellation extension keeps the clip and filter structure but projects each subcarrier onto a region that does not move it toward a decision boundary. Tone reservation puts the correction only on reserved subcarriers.

When to use it

Use it when the receiver cannot change, for example in a standard that defines the receiver but leaves the transmitter free, and when the error budget of the link allows some in-band distortion. Avoid it, or use a high clipping ratio, with dense constellations and high-rate codes, where a −15-15 dB error is a large loss. If side information is acceptable and distortion is not, use selected mapping or partial transmit sequences.

Pitfalls

  • Clipping at the Nyquist rate. Line L1 with L=1L = 1 lets the peaks between the samples survive, and the analog signal still has a high PAPR. Use L≥4L \ge 4 in line L1.
  • Moving threshold. Recomputing AA inside the loop from the current mean power makes the threshold fall with each iteration and removes more energy than needed. Compute it once, in line L2.
  • Wrong bins. Writing line L6 as "C[k]←0C[k] \leftarrow 0 for N≤k<LNN \le k < LN" deletes the negative frequencies of the symbol and keeps the regrowth. With the zeros placed in the middle by line L1, the out-of-band bins are N/2≤k<LN−N/2N/2 \le k < LN - N/2.
  • Square clipping. Writing line L4 as a clamp of the real part and of the imaginary part to ±A\pm A changes the phase and is not the nearest point of the disc. It also lets the magnitude reach 2 A\sqrt 2\, A. Clip the magnitude, as in line L4.
  • Expecting the PAPR to equal CR2\mathrm{CR}^2. After line L7 the peaks grow back above AA, and the mean power has fallen. Measure the PAPR of the output; do not assume it.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

iterative_clipping_and_filtering.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/iterative-clipping-and-filtering/. The authors are listed in prov/CVZ52Y.jsonl.

"""Iterative clipping and filtering of an oversampled OFDM symbol (Armstrong 2002).

The symbol x = sqrt(L) F^H Z is oversampled by L: Z is X with (L - 1) N zeros
in the middle, so that the bins k >= N/2 of X stay the negative frequencies.
Each iteration clips the magnitude of every sample to A, keeps its phase, and
then removes the spectral regrowth by setting the out-of-band bins of the FFT
of size L N to zero. Clipping is the projection onto the set of signals with
|x[m]| <= A for all m, and filtering is the orthogonal projection onto the
band-limited signals, so the iteration is a method of alternating projections.
The FFT is a radix-2 FFT, so N and L must be powers of two.
"""

import cmath
import math
from typing import Sequence


def fft(a: Sequence[complex], inverse: bool = False) -> list[complex]:
    """Radix-2 FFT with no scale factor: sum_n a[n] e^(-+ j 2 pi k n / n_len)."""
    n = len(a)
    if n == 0 or n & (n - 1):
        raise ValueError("the length must be a power of two")
    out = [complex(v) for v in a]
    j = 0
    for i in range(1, n):
        bit = n >> 1
        while j & bit:
            j ^= bit
            bit >>= 1
        j |= bit
        if i < j:
            out[i], out[j] = out[j], out[i]
    sign = 1 if inverse else -1
    size = 2
    while size <= n:
        half = size // 2
        tw = [cmath.exp(sign * 2j * math.pi * k / size) for k in range(half)]
        for s in range(0, n, size):
            for k in range(half):
                u = out[s + k]
                v = out[s + k + half] * tw[k]
                out[s + k] = u + v
                out[s + k + half] = u - v
        size *= 2
    return out


def to_time(X: Sequence[complex], L: int) -> list[complex]:
    """sqrt(L) F^H Z for the N in-band symbols X: the symbol oversampled by L."""
    n = len(X)
    z = [0j] * (L * n)
    z[: n // 2] = [complex(v) for v in X[: n // 2]]
    z[L * n - n + n // 2:] = [complex(v) for v in X[n // 2:]]
    s = 1.0 / math.sqrt(n)
    return [v * s for v in fft(z, inverse=True)]


def to_bins(x: Sequence[complex], L: int) -> list[complex]:
    """F x / sqrt(L): all L N bins of an oversampled block, scaled like X. The inverse of to_time."""
    s = 1.0 / (L * math.sqrt(len(x) // L))
    return [v * s for v in fft(x)]


def in_band(c: Sequence[complex], n: int) -> list[complex]:
    """The N in-band bins (the first N/2 and the last N/2) of an L N point spectrum."""
    return list(c[: n // 2]) + list(c[len(c) - n // 2:])


def clip(x: Sequence[complex], a: float) -> list[complex]:
    """Limit each magnitude to a and keep the phase: the nearest point with |c[m]| <= a."""
    return [v if abs(v) <= a else a * v / abs(v) for v in x]


def clipped_energy(x: Sequence[complex], a: float) -> float:
    """sum over m of (|x[m]| - a)^2 for |x[m]| > a, the squared distance to the clipping set."""
    return sum((abs(v) - a) ** 2 for v in x if abs(v) > a)


def iterative_clipping_and_filtering(X: Sequence[complex], L: int, cr: float, iterations: int) -> tuple[list[complex], list[complex], list[float]]:
    """Clip and filter an OFDM symbol `iterations` times.

    cr is the clipping ratio A / sqrt(mean |x|^2) of the original symbol. Returns
    the final oversampled symbol, its N in-band symbols and the squared distances
    from the clipping set before each clip (the clipped-off energies).
    """
    n = len(X)
    x = to_time(X, L)  # @line L1
    a = cr * math.sqrt(sum(abs(v) ** 2 for v in x) / len(x))  # @line L2
    energies = []
    for _ in range(iterations):  # @line L3
        energies.append(clipped_energy(x, a))
        c = clip(x, a)  # @line L4
        cf = fft(c)  # @line L5
        for k in range(n // 2, L * n - n // 2):  # @line L6
            cf[k] = 0j
        x = [v / (L * n) for v in fft(cf, inverse=True)]  # @line L7
    return x, in_band(to_bins(x, L), n), energies  # @line L8
test_iterative_clipping_and_filtering.py 100 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/iterative-clipping-and-filtering/. The authors are listed in prov/CVZ52Y.jsonl.

import cmath
import math
import random

from iterative_clipping_and_filtering import (
    clip,
    clipped_energy,
    fft,
    in_band,
    iterative_clipping_and_filtering,
    to_bins,
    to_time,
)

QPSK = [complex(a, b) / math.sqrt(2) for a in (1, -1) for b in (1, -1)]


def block(rng, n=64):
    return [rng.choice(QPSK) for _ in range(n)]


def papr(x):
    p = [abs(v) ** 2 for v in x]
    return max(p) / (sum(p) / len(p))


def direct_time(X, L):
    """The oversampled symbol from its definition, x(t) at t = m / (L N) of a symbol."""
    n = len(X)
    freqs = list(range(n // 2)) + list(range(-(n // 2), 0))
    return [sum(X[i] * cmath.exp(2j * math.pi * f * m / (L * n)) for i, f in enumerate(freqs)) / math.sqrt(n) for m in range(L * n)]


def test_fft_and_the_oversampled_symbol():
    rng = random.Random(1)
    X = block(rng, 8)
    assert max(abs(a - b) for a, b in zip(to_time(X, 4), direct_time(X, 4))) < 1e-9
    assert max(abs(a - b) for a, b in zip(fft(fft(X), inverse=True), [8 * v for v in X])) < 1e-9
    assert max(abs(a - b) for a, b in zip(in_band(to_bins(to_time(X, 4), 4), 8), X)) < 1e-9


def test_output_is_band_limited():
    rng = random.Random(2)
    for _ in range(5):
        x, Xo, _ = iterative_clipping_and_filtering(block(rng), 4, 1.2, 3)
        bins = to_bins(x, 4)
        assert max(abs(v) for v in bins[32:256 - 32]) < 1e-12
        assert max(abs(a - b) for a, b in zip(to_time(Xo, 4), x)) < 1e-9


def test_clipped_off_energy_never_grows():
    rng = random.Random(3)
    for _ in range(10):
        X = block(rng)
        x = to_time(X, 4)
        a = 1.3 * math.sqrt(sum(abs(v) ** 2 for v in x) / len(x))
        _, _, e = iterative_clipping_and_filtering(X, 4, 1.3, 6)
        for k in range(6):
            assert abs(e[k] - clipped_energy(x, a)) < 1e-9
            c = clip(x, a)
            filt = to_time(in_band(to_bins(c, 4), 64), 4)
            removed = sum(abs(p - q) ** 2 for p, q in zip(c, filt))
            assert removed <= e[k] + 1e-12
            x = filt
            assert clipped_energy(x, a) <= removed + 1e-12
        assert all(e[k + 1] <= e[k] + 1e-12 for k in range(5))


def test_no_clipping_returns_the_input():
    rng = random.Random(4)
    X = block(rng)
    x, Xo, e = iterative_clipping_and_filtering(X, 4, 10.0, 3)
    assert e == [0.0, 0.0, 0.0]
    assert max(abs(a - b) for a, b in zip(Xo, X)) < 1e-9


def test_clip_is_the_nearest_point_of_the_disc():
    rng = random.Random(5)
    for _ in range(200):
        v = complex(rng.uniform(-3, 3), rng.uniform(-3, 3))
        c = clip([v], 1.0)[0]
        assert abs(c) <= 1.0 + 1e-15
        for _ in range(20):
            r, t = math.sqrt(rng.random()), rng.uniform(0, 2 * math.pi)
            assert abs(c - v) <= abs(r * cmath.exp(1j * t) - v) + 1e-12


def test_papr_drops():
    rng = random.Random(6)
    before, after = [], []
    for _ in range(40):
        X = block(rng)
        before.append(papr(to_time(X, 4)))
        after.append(papr(iterative_clipping_and_filtering(X, 4, 1.4, 4)[0]))
    assert 10 * math.log10(sum(before) / 40) > 6.5
    assert 10 * math.log10(sum(after) / 40) < 5.0
    assert 10 * math.log10(max(after)) < 6.0

History

Clipping is the simplest way to limit the peaks of a multicarrier signal. Li and Cimini (1998) analyzed one clip at the transmitter followed by a filter, and showed the effect on the error rate and on the spectrum. Armstrong (2002) clipped the oversampled signal, filtered with an FFT so that the out-of-band power is removed exactly, and repeated the two steps, which brought the peak regrowth down. The overview by Han and Lee (2005) places clipping and filtering among the distortion methods, next to the methods with side information.

References

  1. J. Armstrong, Peak-to-average power reduction for OFDM by repeated clipping and frequency domain filtering, Electronics Letters 38(5), 2002, pages 246 to 247, the oversampled clipping, the FFT filter that removes the out-of-band components, and the repetition of the two steps
  2. Xiaodong Li and Leonard J. Cimini, Effects of clipping and filtering on the performance of OFDM, IEEE Communications Letters 2(5), 1998, pages 131 to 133, one clipping step followed by a filter, and its effect on the error rate and the spectrum
  3. Seung Hee Han and Jae Hong Lee, An overview of peak-to-average power ratio reduction techniques for multicarrier transmission, IEEE Wireless Communications 12(2), 2005, pages 56 to 65, the section on clipping and filtering in the overview of reduction methods

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example