AutoCrossNoise
- class pmrf.noise_models.AutoCrossNoise(auto: Array | ndarray | bool | number | bool | int | float | complex, cross: Array | ndarray | bool | number | bool | int | float | complex, port_axes: tuple[int, int] = (0, 1))
Bases:
AbstractNoiseModelAuto and cross term noise model.
Maps underlying auto and cross noise models to a full matrix based on the specified port axes.
Can be used to assign separate noise variances to reflection and (auto) transmission (cross) coefficients.
Operates in “event space”. For example, for a standard N-port S-parameter feature, the input y_event will be of shape (nports, nports, nfreq) or (nports, nports, 2, nfreq).
- Parameters:
auto (ArrayLike) – The “auto” term, e.g. S11, S22 etc.
cross (ArrayLike) – The “cross” term, e.g. S21, S43 etc.
port_axes (tuple[int, int]) – The axes defining the ports. Defaults to (0, 1).
- __call__(y_event: Array)
Map model predictions to noise parameters.
- Parameters:
y_event (jnp.ndarray) – The mean model prediction in event space.
- Returns:
The noise parameter or a tuple of noise parameters.
- Return type:
jnp.ndarray | tuple[jnp.ndarray, jnp.ndarray]
- auto: Array | ndarray | bool | number | bool | int | float | complex
The “auto” term.
- cross: Array | ndarray | bool | number | bool | int | float | complex
The “cross” term.
- port_axes: tuple[int, int] = (0, 1)
The port axes in the array.