PolynomialRatio

class pmrf.models.surrogates.rational.PolynomialRatio(A: Any, B: Any, *, name: str | None = None, metadata: Any = None, domain: str = 's', z0: Any = 50.0)

Bases: AbstractSingleDomain

(experimental) A general N-port model defined by a ratio of polynomials H(s) = A(s) / B(s) where s = j*w.

Parameters:
  • A (Param) – Numerator coefficients. The first dimension is the polynomial degree. Shape can be (degree,), (degree, N, N), etc. Coefficients are in increasing order of degree (index 0 is constant term).

  • B (Param) – Denominator coefficients. The first dimension is the polynomial degree. Shape can be (degree,), (degree, N, N), etc. Coefficients are in increasing order of degree.

matrix(freq: Frequency) → Array

Compute the intrinsic matrix for the domain.

Parameters:

freq (Frequency) – The frequency grid to evaluate on.

Returns:

The intrinsic domain matrix.

Return type:

jax.numpy.ndarray

A: Param

Numerator coefficients

B: Param

Denominator coefficients