comnum.viterbi_viterbi#

comnum.viterbi_viterbi(x, *, n=35, m=4)#

Viterbi–Viterbi phase estimates (OptiCommPy viterbi), to apply with derotate(x, θ).

Parameters:
  • x (array_like) – signal at one sample per symbol.

  • n (int) – half-length of the averaging window (symbols).

  • m (int) – the symmetry (4 for QAM).

Returns:

one phase per symbol (rad).

Return type:

numpy.ndarray

Raises:

ValueError – for an input that is not an array of numbers of the expected shape.