pyFDN.complete_fdn#

pyFDN.complete_fdn(A, num_io=None, *, preprocessing='optimize', q=1.0, tol_one=1e-08, psd_clip=0.0, rng=None)[source]#

Compute a completion (B,C,D) for given A.

Parameters:
  • A (ndarray) – (N,N) feedback matrix

  • num_io (int | None) – number of IO channels k, as in complete_orthogonal. If None -> full MIMO (k=N).

  • preprocessing (str) – “none” -> X = I “optimize” -> find diagonal similarity X=diag(x) that makes G(u) PSD with rank ~ k.

  • q (float | ndarray) – RHS for diagonal similarity solve (scalar or (N,) vector).

  • tol_one (float) – tolerance for ‘singular value equals 1’ decisions in general MIMO.

  • psd_clip (float) – eigenvalue clip (>=0) for PSD square roots in full MIMO completion.

  • rng (Generator | int | None) – Generator or integer seed for the random start and mixing.

Returns:

B, C, D, x, where x is the diagonal of the similarity X used (ones if none).

Return type:

tuple[ndarray, ndarray, ndarray, ndarray]