Provides a n-port network class and associated functions.
Most of the functionality in this module is provided as methods and
properties of the Network Class.
Network Class
| Network([touchstone_file, name]) |
A n-port network. |
Functions On Networks
| connect(ntwkA, k, ntwkB, l) |
connect two n-port networks together. |
| innerconnect(ntwkA, k, l) |
connect two ports of a single n-port network. |
| cascade(ntwkA, ntwkB) |
cascade two 2-port Networks together |
| de_embed(ntwkA, ntwkB) |
de-embed ntwkA from ntwkB. this calls ntwkA.inv**ntwkB. |
| average(list_of_networks) |
calculates the average network from a list of Networks. |
| one_port_2_two_port(ntwk) |
calculates the two-port network given a symetric, reciprocal and |
Supporting Functions
| connect_s(A, k, B, l) |
connect two n-port networks’ s-matricies together. |
| innerconnect_s(A, k, l) |
connect two ports of a single n-port network’s s-matrix. |
| s2t(s) |
converts scattering parameters to scattering transfer parameters. |
| t2s(t) |
converts scattering transfer parameters to scattering parameters |
| inv(s) |
calculates ‘inverse’ s-parameter matrix, used for de-embeding |
| flip(a) |
invert the ports of a networks s-matrix, ‘flipping’ it over |