awgn_channel_capacity

AWGN channel capacity.

Namespace: dsp::telecom

Prototype

float awgn_channel_capacity(float snr, float B=1)

Parameters

snrSignal to noise power ratio (linear scale)
BChannel bandwidth, in Hz (default is 1 Hz)

Returns

Channel capacity, in bits/s

Description

Computes the ideal AWGN channel capacity, in bits/s: \[ c = B\cdot \log_2(1+\textrm{SNR}) \]

Example


  soit n = 100;
  soit snr_db = linspace(-10, 20, n);
  soit C = snr_db.unaryExpr(Λ(x, capacite_canal_awgn(db2pow(x))));

  Figure f;
  f.plot(snr_db, C);
  f.titres("Capacité canal AWGN", "SNR (dB)", "Capacité (bit / s / Hz)");