pyFDN.is_allpass#

pyFDN.is_allpass(delays, A, B, C, D, tol=1e-09)[source]#

Test whether the delay state-space system is allpass.

Checks that the determinant transfer function has numerator = reversed(denominator) (up to sign). See “Allpass Feedback Delay Networks” by Sebastian J. Schlecht.

Parameters:
  • delays (ArrayLike) – Delay lengths (samples), length N.

  • A (ArrayLike) – Delay state-space matrices.

  • B (ArrayLike) – Delay state-space matrices.

  • C (ArrayLike) – Delay state-space matrices.

  • D (ArrayLike) – Delay state-space matrices.

  • tol (float) – Tolerance for coefficient comparison.

Returns:

True if the numerator is the reversed denominator, up to sign. The denominator itself is pyFDN.general_char_poly().

Return type:

bool