comnum.maxwell_boltzmann#

comnum.maxwell_boltzmann(constellation, lam)#

Maxwell–Boltzmann probabilities p(x) ∝ exp(-λ|x|²) of the points.

Parameters:
  • constellation (Constellation) – the alphabet.

  • lam (float) – the shaping parameter λ (0 for uniform).

Returns:

one probability per point, summing to one (float64).

Return type:

numpy.ndarray