comnum.cd_savory_taps#

comnum.cd_savory_taps(fiber, length_km, fs, *, n_taps=None)#

Centred taps of Savory’s dispersion-compensating FIR, √(j/(4Kπ)) e^{-jn²/(4K)}.

After S. J. Savory, Opt. Express 16(2), 2008.

Parameters:
  • fiber (FiberParams) – the fibre.

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

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

  • n_taps (int | None) – odd number of taps; None: Savory’s rule 2⌊2π|K|⌋ + 1.

Returns:

the taps (complex128).

Return type:

numpy.ndarray

Raises:

ValueError – for an invalid parameter (the message names it).