Algorithm Search⌘K

Modelcore

Clarke model

Also called Clarke's model, Jakes Doppler spectrum.

A receiver moving through isotropic scattering in the plane. It gives Rayleigh fading in time with autocorrelation Omega J0(2 pi f_D tau) and a U-shaped Doppler spectrum on |f| < f_D.

Clarke's model describes the complex gain of a flat fading channel at a receiver that moves through a field of scattered waves arriving from all directions in the horizontal plane with equal probability. The gain is a circular complex Gaussian process, so its envelope is Rayleigh at every instant, and its autocorrelation is ΩJ0(2πfDτ)\Omega J_0(2\pi f_D\tau), where fD=vfc/cf_D = v f_c/c is the maximum Doppler frequency. The Fourier transform of this correlation is the U-shaped Doppler spectrum on ∣f∣<fD|f| < f_D. Clarke (1968) gave the model; Jakes (1974) made the spectrum standard. This page is about the spectrum and the process. Programs that generate sample paths with these statistics are on separate pages: the Jakes simulator, the Zheng and Xiao simulator and the filtered Gaussian simulator.

The machine

A receiver moves at speed vv in meters per second. A carrier at frequency fcf_c in hertz, with wavelength λ=c/fc\lambda = c/f_c, reaches it over NN paths. Path nn arrives in the horizontal plane at angle θn\theta_n to the direction of motion, with amplitude CnC_n and phase ϕn\phi_n. The complex baseband gain is

h(t)=∑n=1NCn ej(2πfDcos⁡θn t+ϕn),fD=vfcc.h(t) = \sum_{n=1}^{N} C_n\, e^{j(2\pi f_D \cos\theta_n\, t + \phi_n)}, \qquad f_D = \frac{v f_c}{c}.

The standing assumptions are:

  • Isotropic scattering. The angles θn\theta_n are independent and uniform on [0,2π)[0, 2\pi).
  • Random phases. The phases ϕn\phi_n are independent, uniform on [0,2π)[0, 2\pi), and independent of the angles.
  • Equal small powers. No path dominates, there is no line of sight, and ∑nECn2=Ω\sum_n \mathbb{E}C_n^2 = \Omega.
  • Flat fading in the plane. All paths have nearly the same delay compared with the symbol time, all waves travel in the horizontal plane, and the antenna is omnidirectional in that plane.
  • A local area. The receiver moves a few tens of wavelengths, so the set of scatterers, the speed and the mean power Ω\Omega stay fixed.

As N→∞N \to \infty, the central limit theorem makes h(t)h(t) a zero-mean circular complex Gaussian process. The model then describes time-correlated fading: at each time the gain is that of the Rayleigh fading channel, and the gains at different times are linked by the autocorrelation below. The model is of the channel only. It says nothing about channel knowledge; pages that use it state whether the receiver has CSIR, for example from channel estimation, and whether there is CSIT.

What it counts

The model predicts the second-order statistics of h(t)h(t), and from them the statistics of fades in time and in space.

Autocorrelation and spectrum.

Rh(τ)=E[h(t+τ) h∗(t)]=Ω J0(2πfDτ),Sh(f)=ΩπfD1−(f/fD)2  for ∣f∣<fD,R_h(\tau) = \mathbb{E}[h(t+\tau)\, h^*(t)] = \Omega\, J_0(2\pi f_D \tau), \qquad S_h(f) = \frac{\Omega}{\pi f_D \sqrt{1 - (f/f_D)^2}} \ \text{ for } |f| < f_D,

and Sh(f)=0S_h(f) = 0 for ∣f∣>fD|f| > f_D. Here J0(x)=12π∫02πejxcos⁡θ dθJ_0(x) = \frac{1}{2\pi}\int_0^{2\pi} e^{j x\cos\theta}\, d\theta is the Bessel function of the first kind and order zero. The spectrum integrates to Ω\Omega, has mean 00 and RMS width σν=fD/2\sigma_\nu = f_D/\sqrt2, and is infinite at ±fD\pm f_D.

In-phase and quadrature parts. With h=hI+jhQh = h_I + j h_Q, each part has autocorrelation Ω2J0(2πfDτ)\frac{\Omega}{2}J_0(2\pi f_D\tau), and the cross-correlation E[hI(t+τ)hQ(t)]\mathbb{E}[h_I(t+\tau) h_Q(t)] is zero at every lag because the spectrum is even.

Values of the correlation. J0(2πfDτ)J_0(2\pi f_D\tau) falls to 0.90.9 at fDτ=0.1020f_D\tau = 0.1020, to 0.50.5 at fDτ=0.2421f_D\tau = 0.2421 and to 00 at fDτ=0.38274f_D\tau = 0.38274, the first zero. After that it oscillates with ∣J0∣≤0.403|J_0| \le 0.403. These values give the coherence time of the model.

Space instead of time. In time τ\tau the receiver moves d=vτd = v\tau, and 2πfDτ=2πd/λ2\pi f_D \tau = 2\pi d/\lambda. So two antennas on the receiver spaced dd apart, in the same field, have gains with correlation J0(2πd/λ)J_0(2\pi d/\lambda): 0.50.5 at d=0.242λd = 0.242\lambda and 00 at d=0.383λd = 0.383\lambda. At d=λ/2d = \lambda/2 the value is J0(π)=−0.304J_0(\pi) = -0.304. This is why antennas at a mobile placed about half a wavelength apart give useful diversity, a rule that holds only under isotropic scattering.

Fade statistics. The rate at which the envelope ∣h∣|h| crosses a level ρΩ\rho\sqrt\Omega going down, and the mean time it stays below, are

NR=2π fD ρ e−ρ2,tˉR=eρ2−1ρfD2π,N_R = \sqrt{2\pi}\, f_D\, \rho\, e^{-\rho^2}, \qquad \bar t_R = \frac{e^{\rho^2} - 1}{\rho f_D\sqrt{2\pi}},

with NR/fD=0.92214N_R/f_D = 0.92214 and tˉRfD=0.68550\bar t_R f_D = 0.68550 at ρ=1\rho = 1. The proof is on the level crossing rate page.

A worked example. At v=30v = 30 m/s and fc=900f_c = 900 MHz, fD=90.06f_D = 90.06 Hz and λ=0.333\lambda = 0.333 m. After τ=1\tau = 1 ms, x=2πfDτ=0.5659x = 2\pi f_D\tau = 0.5659 and J0(x)≈1−x2/4+x4/64=0.9215J_0(x) \approx 1 - x^2/4 + x^4/64 = 0.9215. The correlation reaches 00 after 0.38274/fD=4.250.38274/f_D = 4.25 ms, when the receiver has moved 12.812.8 cm, which is 0.383λ0.383\lambda.

Computing the correlation

The function below evaluates Rh(τ)R_h(\tau) as the mean of cos⁡(xcos⁡θ)\cos(x\cos\theta) over NN equally spaced angles, which is the model with NN paths in fixed directions. The integrand is smooth and periodic, so the midpoint rule converges faster than any power of 1/N1/N: its error is of the order of ∣J2N(x)∣|J_{2N}(x)|, far below rounding error once 2N2N is well above ∣x∣|x|.

  1. CLARKE-CORRELATION(τ, f_D, Ω) ▷ R(τ) = Ω J0(2π f_D τ)
  2. 1x ← 2π · f_D · τ
  3. 2N ← 32 + ⌈|x|⌉
  4. 3s ← Σ_{n=0}^{N-1} cos(x · cos(π (n + 1/2) / N)) ▷ midpoint rule on [0, π]
  5. 4return Ω · s / N
  6. DOPPLER-SPECTRUM(f, f_D, Ω) ▷ S(f), Clarke's U-shaped spectrum
  7. 5if |f| ≥ f_D then return 0
  8. 6return Ω / (π · f_D · √(1 - (f / f_D)²))

The cost is O(∣x∣+1)O(|x| + 1) operations. The tests compare the result with the power series of J0J_0 and with its known zeros, check the values on this page, integrate the spectrum against the correlation, and compare a Monte Carlo average over random angles and phases with J0J_0 within a stated tolerance.

Relation to other models

  • Rayleigh fading. At a single time Clarke's model is the Rayleigh fading channel. The model adds the time dimension that block and fast fading leave out.
  • Rician fading. A fixed line-of-sight path at angle θ0\theta_0 adds a constant times ej2πfDcos⁡θ0te^{j 2\pi f_D\cos\theta_0 t} and gives the Rician channel with a spectral line at fDcos⁡θ0f_D\cos\theta_0.
  • Generators. Clarke's model is a statement about a Gaussian process, not a program. The Jakes simulator sums a few sinusoids with fixed angles; Pop and Beaulieu (2001) showed that it is not wide-sense stationary. The Zheng and Xiao simulator draws random angles and phases to repair this. The filtered Gaussian simulator shapes white Gaussian noise with a filter whose power response approximates ShS_h. Each matches the model only approximately; its page states the error.
  • Frequency-selective channels. In a tapped delay line model each tap can be an independent Clarke process. Under the WSSUS model this means a scattering function that is the power delay profile times the Clarke spectrum.
  • Geometric models. A geometry-based stochastic model with scatterers on a ring around the mobile and a distant base station reduces to Clarke's model at the mobile. Seen from the base station, the same ring gives a narrow angle spread and a much slower spatial decorrelation.
  • Tracking. The spectrum is not rational, so no finite autoregressive model has exactly the correlation J0J_0. Kalman channel tracking uses an autoregressive fit, which is an approximation.

Known results in the model

  1. The autocorrelation (a closed form under isotropic scattering). With the phases independent and uniform, the cross terms vanish: E[ej(ϕn−ϕm)]=0\mathbb{E}[e^{j(\phi_n - \phi_m)}] = 0 for n≠mn \ne m. So
    Rh(τ)=∑nECn2 E[ej2πfDcos⁡θ τ]=Ω⋅12π∫02πej2πfDτcos⁡θ dθ=Ω J0(2πfDτ).R_h(\tau) = \sum_n \mathbb{E}C_n^2\, \mathbb{E}\big[e^{j 2\pi f_D\cos\theta\, \tau}\big] = \Omega \cdot \frac{1}{2\pi}\int_0^{2\pi} e^{j 2\pi f_D\tau\cos\theta}\, d\theta = \Omega\, J_0(2\pi f_D\tau).
    The result does not need N→∞N \to \infty: it holds for any NN with random angles and phases. Gaussianity is what needs a large NN.
  2. The Doppler spectrum (a closed form under isotropic scattering). Path nn contributes power ECn2\mathbb{E}C_n^2 at the frequency ν=fDcos⁡θn\nu = f_D\cos\theta_n, so Sh/ΩS_h/\Omega is the density of fDcos⁡θf_D\cos\theta for uniform θ\theta. Each ν\nu in (−fD,fD)(-f_D, f_D) comes from two angles, and ∣dν/dθ∣=fD∣sin⁡θ∣=fD1−(ν/fD)2|d\nu/d\theta| = f_D|\sin\theta| = f_D\sqrt{1 - (\nu/f_D)^2}. So the density is 2⋅12π⋅1fD1−(ν/fD)22 \cdot \frac{1}{2\pi} \cdot \frac{1}{f_D\sqrt{1 - (\nu/f_D)^2}}, which is the formula above. Its variance is fD2 E[cos⁡2θ]=fD2/2f_D^2\,\mathbb{E}[\cos^2\theta] = f_D^2/2.
  3. Independence of the gain and its derivative. E[h′(t) h∗(t)]=Rh′(0)=0\mathbb{E}[h'(t)\, h^*(t)] = R_h'(0) = 0, since J0′(0)=0J_0'(0) = 0. With circular symmetry, E[h′(t) h(t)]=0\mathbb{E}[h'(t)\, h(t)] = 0 as well, and for jointly Gaussian variables zero correlation is independence. The derivative has power −Rh′′(0)=2π2fD2 Ω-R_h''(0) = 2\pi^2 f_D^2\,\Omega, from J0(x)=1−x2/4+O(x4)J_0(x) = 1 - x^2/4 + O(x^4). These two facts give the level crossing rate.
  4. A band-limited process. ShS_h is zero outside [−fD,fD][-f_D, f_D], so by the sampling theorem samples at a rate above 2fD2f_D determine h(t)h(t). This is the basis of the pilot spacing in pilot-symbol-assisted modulation.
  5. Bounds on the coherence time. Fleury's uncertainty relation with σν=fD/2\sigma_\nu = f_D/\sqrt2 gives ∣J0(2πfDτ)∣≥cos⁡(2 πfDτ)|J_0(2\pi f_D\tau)| \ge \cos(\sqrt2\,\pi f_D \tau) for fDτ≤1/(22)f_D\tau \le 1/(2\sqrt2). At the level 0.50.5 the bound is 0.2357/fD0.2357/f_D against the true 0.2421/fD0.2421/f_D; see coherence time.

Pitfalls

  • Model and simulator. "Jakes model" often names the simulator and "Jakes spectrum" the spectrum. A simulation with a few fixed angles does not reproduce J0J_0 at long lags and is not stationary; quote which one is meant.
  • The peaks at ±fD\pm f_D. They come from exact isotropy in a plane. Measured spectra are finite, and directional antennas or a limited angle spread change the shape of the spectrum completely.
  • Envelope correlation. J0J_0 is the correlation of the complex gain. The correlation coefficient of the envelopes ∣h∣|h| is close to J02J_0^2 and never negative.
  • The base station. Isotropic scattering is a fair assumption around a mobile in a city. At an elevated base station the waves come from a narrow sector, and J0(2πd/λ)J_0(2\pi d/\lambda) does not give the antenna correlation there.
  • The frequency in fDf_D. fDf_D uses the carrier frequency, not the signal bandwidth. At 2828 GHz the same speed gives fourteen times the Doppler of 22 GHz.

Code

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.

clarke_model.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/clarke-model/. The authors are listed in prov/2J0WV7.jsonl.

"""Clarke's model: the autocorrelation Omega J0(2 pi f_D tau) and the U-shaped Doppler spectrum.

f_D = v f_c / c is the maximum Doppler frequency in hertz and Omega the mean power E|h|^2.
"""

import math

SPEED_OF_LIGHT = 299_792_458.0


def max_doppler(speed: float, carrier: float) -> float:
    """f_D = v f_c / c for a speed in m/s and a carrier in Hz."""
    return speed * carrier / SPEED_OF_LIGHT


def bessel_j0(x: float) -> float:
    """J0(x) as the mean of cos(x cos theta) over N midpoints of [0, pi]."""
    n = 32 + math.ceil(abs(x))  # @line L2
    s = math.fsum(math.cos(x * math.cos(math.pi * (k + 0.5) / n)) for k in range(n))  # @line L3
    return s / n


def clarke_correlation(tau: float, f_d: float, omega: float = 1.0) -> float:
    """R(tau) = E[h(t + tau) h*(t)] = Omega J0(2 pi f_D tau)."""
    x = 2 * math.pi * f_d * tau  # @line L1
    return omega * bessel_j0(x)  # @line L4


def doppler_spectrum(f: float, f_d: float, omega: float = 1.0) -> float:
    """S(f) = Omega / (pi f_D sqrt(1 - (f/f_D)^2)) for |f| < f_D, and 0 outside."""
    if f_d <= 0:
        raise ValueError("f_d must be positive")
    if abs(f) >= f_d:  # @line L5
        return 0.0
    return omega / (math.pi * f_d * math.sqrt(1 - (f / f_d) ** 2))  # @line L6


def rms_doppler_spread(f_d: float) -> float:
    """The RMS width of Clarke's spectrum, f_D / sqrt(2)."""
    return f_d / math.sqrt(2)
test_clarke_model.py 123 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/clarke-model/. The authors are listed in prov/2J0WV7.jsonl.

import cmath
import math
import random

from clarke_model import (
    bessel_j0,
    clarke_correlation,
    doppler_spectrum,
    max_doppler,
    rms_doppler_spread,
)


def j0_series(x: float) -> float:
    """The power series sum_k (-x^2/4)^k / (k!)^2, accurate for |x| <= 20."""
    s, t, k = 0.0, 1.0, 0
    while k < 120:
        s += t
        k += 1
        t *= -(x * x / 4) / (k * k)
    return s


def bisect(f, a: float, b: float) -> float:
    for _ in range(80):
        m = (a + b) / 2
        if f(a) * f(m) <= 0:
            b = m
        else:
            a = m
    return (a + b) / 2


def test_against_series() -> None:
    for i in range(0, 401):
        x = i * 0.05
        # The series loses digits to cancellation as x grows; the midpoint rule does not.
        assert abs(bessel_j0(x) - j0_series(x)) < (1e-12 if x <= 10 else 1e-9)
        assert bessel_j0(-x) == bessel_j0(x)
    assert abs(bessel_j0(1.0) - 0.7651976865579666) < 1e-14


def test_zeros_and_large_arguments() -> None:
    for z in (2.404825557695773, 5.520078110286311, 8.653727912911013, 30.634606468431976):
        assert abs(bessel_j0(z)) < 1e-13
    # Asymptotic form sqrt(2/(pi x)) cos(x - pi/4) at a large argument.
    x = 1000.0
    assert abs(bessel_j0(x) - math.sqrt(2 / (math.pi * x)) * math.cos(x - math.pi / 4)) < 1e-5


def test_check_values() -> None:
    corr = lambda u: clarke_correlation(u, 1.0)
    assert abs(bisect(corr, 0.3, 0.45) - 0.38274) < 5e-6
    assert abs(bisect(lambda u: corr(u) - 0.5, 0.1, 0.3) - 0.2421) < 5e-5
    assert abs(bisect(lambda u: corr(u) - 0.9, 0.05, 0.2) - 0.1020) < 5e-5
    assert abs(bisect(lambda u: corr(u) ** 2 - 0.5, 0.1, 0.25) - 0.1793) < 5e-5
    # Coherence time rules: 0.423/f_D is past the first zero.
    assert abs(corr(0.423) - (-0.1235)) < 5e-4
    assert abs(bessel_j0(math.pi) - (-0.3042)) < 5e-5
    # The worked example: 30 m/s at 900 MHz, tau = 1 ms.
    fd = max_doppler(30.0, 900e6)
    assert abs(fd - 90.062) < 1e-3
    assert abs(clarke_correlation(1e-3, fd) - 0.9215) < 5e-5
    assert abs(clarke_correlation(1e-3, fd, 2.0) - 2 * clarke_correlation(1e-3, fd)) < 1e-15
    # Fleury's bound with sigma_nu = f_D / sqrt(2).
    for i in range(1, 100):
        u = i / 100 / (2 * math.sqrt(2))
        assert abs(corr(u)) >= math.cos(math.sqrt(2) * math.pi * u) - 1e-12


def test_spectrum_integrals() -> None:
    fd, omega = 50.0, 3.0
    n = 4000
    us = [-math.pi / 2 + math.pi * (k + 0.5) / n for k in range(n)]
    du = math.pi / n
    # f = f_D sin u removes the singularities at the band edges.
    w = [doppler_spectrum(fd * math.sin(u), fd, omega) * fd * math.cos(u) * du for u in us]
    fs = [fd * math.sin(u) for u in us]
    assert abs(sum(w) - omega) < 1e-9
    assert abs(sum(wi * f for wi, f in zip(w, fs))) < 1e-9
    var = sum(wi * f * f for wi, f in zip(w, fs)) / omega
    assert abs(math.sqrt(var) - rms_doppler_spread(fd)) < 1e-9
    for tau in (0.0, 0.001, 0.004, 0.01, 0.03):
        r = sum(wi * math.cos(2 * math.pi * f * tau) for wi, f in zip(w, fs))
        assert abs(r - omega * j0_series(2 * math.pi * fd * tau)) < 1e-9
    # Power within |f| < f_D / 2 is (2/pi) arcsin(1/2) = 1/3 of the total.
    m = 20000
    inner = sum(doppler_spectrum(-fd / 2 + fd * (k + 0.5) / m, fd) for k in range(m)) * fd / m
    assert abs(inner - 1 / 3) < 1e-6
    assert doppler_spectrum(fd, fd) == 0.0 and doppler_spectrum(-2 * fd, fd) == 0.0


def test_monte_carlo_sum_of_paths() -> None:
    # Random angles and phases, M paths of power omega/M each: the mean of
    # h(tau) h*(0) over draws estimates omega J0(2 pi f_D tau).
    rng = random.Random(2024)
    fd, omega, m, draws = 100.0, 1.0, 8, 4000
    taus = (0.0, 0.001, 0.0024, 0.005)
    acc = [0j] * len(taus)
    power = 0.0
    for _ in range(draws):
        th = [rng.uniform(0, 2 * math.pi) for _ in range(m)]
        ph = [rng.uniform(0, 2 * math.pi) for _ in range(m)]
        amp = math.sqrt(omega / m)
        h0 = sum(amp * cmath.exp(1j * p) for p in ph)
        power += abs(h0) ** 2
        for i, tau in enumerate(taus):
            ht = sum(amp * cmath.exp(1j * (2 * math.pi * fd * math.cos(t) * tau + p)) for t, p in zip(th, ph))
            acc[i] += ht * h0.conjugate()
    assert abs(power / draws - omega) < 0.08
    for a, tau in zip(acc, taus):
        assert abs(a / draws - clarke_correlation(tau, fd, omega)) < 0.08


def test_bad_input() -> None:
    try:
        doppler_spectrum(0.0, 0.0)
    except ValueError:
        return
    raise AssertionError("expected ValueError")

References

  1. R. H. Clarke, A statistical theory of mobile-radio reception, Bell System Technical Journal 47(6), 1968, pp. 957 to 1000 (the field at a moving receiver as a sum of plane waves from random directions, its Gaussian statistics, correlation and spectrum)
  2. William C. Jakes (editor), Microwave Mobile Communications, Wiley, 1974; reissued by IEEE Press, 1994, the chapter on multipath interference (the Doppler power spectrum of the field under uniform angles of arrival, its correlation functions and the level crossing rate)
  3. Theodore S. Rappaport, Wireless Communications, Principles and Practice, second edition, Prentice Hall, 2002, Section 5.7.1 (Clarke's model for flat fading) and Section 5.7.2 (simulation of Clarke and Gans fading models)
  4. Andrea Goldsmith, Wireless Communications, Cambridge University Press, 2005, Section 3.2.1 (autocorrelation, cross-correlation and power spectral density under uniform scattering)

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 proofH0 no proof
  • add a proof in proofs/ (06.5)
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)
WritingW4 complete
  • a review of the text: no review record reviews/2J0WV7/text.yaml