perturbation.ScatteringMatrix
perturbation.ScatteringMatrix(freqs, data, *, basis='char', ports=None)A 2-port scattering matrix w_out = S(f) @ w_in versus frequency [Hz].
Incoming/outgoing waves are ordered by matrices.scattering_labels. The basis must be diagonal in the characteristics ("char" or "riemann"). See :class:TransferMatrix for the constructor arguments.
Methods
| Name | Description |
|---|---|
| plot | Magnitude/phase grid of the entries (see plotting.plot_scattering_matrix). |
| to_transfer | The equivalent :class:TransferMatrix in the characteristic basis (needs :attr:ports). |
plot
perturbation.ScatteringMatrix.plot(freqs=None, **kwargs)Magnitude/phase grid of the entries (see plotting.plot_scattering_matrix).
to_transfer
perturbation.ScatteringMatrix.to_transfer()The equivalent :class:TransferMatrix in the characteristic basis (needs :attr:ports).