AbstractSingleDiscreteDomain

class pmrf.models.adapters.base.AbstractSingleDiscreteDomain(frequency: Any, *, name: str | None = None, metadata: Any = None, domain: str = 's', z0: Any = 50.0)

Bases: AbstractSingleDomain, AbstractDiscrete, ABC

(experimental) Base model providing a single dynamic domain from a discrete grid.

To use this class, inherit from it and implement discrete_matrix to return the intrinsic tabulated data. Interpolation and impedance renormalization are handled automatically.

abstractmethod discrete_matrix() Array

Return the static discrete matrix.

Returns:

The tabulated intrinsic domain matrix.

Return type:

jax.numpy.ndarray

matrix(freq: Frequency) Array

Interpolate the discrete matrix onto the requested continuous frequency grid.

Parameters:

freq (Frequency) – The target continuous frequency grid.

Returns:

The interpolated domain matrix.

Return type:

jax.numpy.ndarray