comnum.cdc#

comnum.cdc(x, fiber, length_km, fs)#

Compensate the dispersion of length_km of fiber on a block sampled at fs (frequency domain, exact on a periodic block).

Parameters:
  • x (array_like) – the field.

  • fiber (FiberParams) – the fibre (its dispersion).

  • length_km (float) – the length to compensate (km).

  • fs (float) – sampling rate (Hz).

Returns:

the compensated field (complex128).

Return type:

numpy.ndarray

Raises:

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