skrf.network.Network.nonreciprocity

Network.nonreciprocity(m, n, normalize=False)[source]

Normalized non-reciprocity metric.

This is a port-by-port measure of how non-reciprocal an n-port network is. It is defined by,

\[(S_{mn} - S_{nm}) / \sqrt ( S_{mn} S_{nm} )\]
Parameters:
  • m (int or str) – m index, or port name if the Network has named ports (Network.port_names). Note that the indices are one-based, like the s matrix element they name, and unlike the zero-based port indices taken by connect() or Network.renumber(). Port names are unaffected by this.

  • n (int or str) – n index, one-based, or port name

  • normalize (bool) – Normalize the result. Default is False.

Returns:

ntwk – Resulting renumbered Network

Return type:

Network object

Raises:
  • ValueError – If an index is out of range. Being one-based, 0 is not a valid index.

  • KeyError – If a port name is unknown.