comnum.monte_carlo_mi#
- comnum.monte_carlo_mi(rx, tx, constellation, *, px=None)#
Symbol-wise mutual information for a Gaussian channel of the measured noise variance (OptiCommPy
monteCarloMI; the transmitted symbols are snapped to the constellation, so that the estimate never exceedsH(X)).- Parameters:
rx (array_like) – the received symbols.
tx (array_like) – the transmitted symbols.
constellation (Constellation) – the alphabet.
px (array_like, optional) – prior probabilities of the points (uniform by default).
- Returns:
the mutual information (bits/symbol).
- Return type:
- Raises:
ValueError – for an invalid parameter or input (the message names it).