skrf.network.Network.is_symmetric

Network.is_symmetric(n=1, port_order=None, tol=1e-12)[source]

Return whether the 2N-port network has n-th order reflection symmetry by checking. \(S_{i,i} == S_{j,j}\) for appropriate pair(s) of \(i\) and \(j\).

Parameters:
  • n (int) – Order of line symmetry to test for

  • port_order (dict[int, int]) – Renumbering of zero-indexed ports before testing

  • tol (float) – Tolerance in numeric comparisons. Default is skrf.mathFunctions.ALMOST_ZERO.

Returns:

bool

Return type:

boolean

Raises:

ValueError

  1. If the network has an odd number of ports (2) If n is not in the range 1 to N (3) If n does not evenly divide 2N (4) If port_order is not a valid reindexing of ports e.g. specifying x->y but not y->z, specifying x->y twice, or using an index outside the range 0 to 2N-1

References

https://en.wikipedia.org/wiki/Two-port_network#Scattering_parameters_(S-parameters)