renormalize_s
- pmrf.rf.renormalize_s(s: Array, z_old: Array | ndarray | bool | number | bool | int | float | complex, z_new: Array | ndarray | bool | number | bool | int | float | complex, s_def_old='power', s_def_new='power', method='mobius') Array
Renormalize S-parameters from one impedance/definition to another.
Includes branches to skip normalization if not needed.
- Parameters:
s (jnp.ndarray) – The input S-parameter matrix with shape (nports, nports) or (nfreqs, nports, nports).
z_old (ArrayLike) – The original characteristic impedance.
z_new (ArrayLike) – The new characteristic impedance.
s_def_old (str, optional, default='power') – The original S-parameter definition.
s_def_new (str, optional, default='power') – The new S-parameter definition.
method (str, optional, default='mobius') – The algorithm to use. Can be ‘mobius’ or ‘hub’.
- Returns:
The renormalized S-parameter matrix.
- Return type:
jnp.ndarray