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 thesmatrix element they name, and unlike the zero-based port indices taken byconnect()orNetwork.renumber(). Port names are unaffected by this.normalize (bool) – Normalize the result. Default is False.
- Returns:
ntwk – Resulting renumbered Network
- Return type:
Networkobject- 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.