pyFDN.plot_fdn_parameter#
- pyFDN.plot_fdn_parameter(delays, A, B, C, D, *, post_delay=None, post_matrix=None, post_output=None, fs=None, nfft=512, vmin=None, vmax=None, title=None)[source]#
Plot all FDN parameters in one figure.
Extends
plot_system_matrix()with the delay lengths and, optionally, any of the three filter hooks, named aspyFDN.dss_to_td()names them, so a system and its filters unpack straight in:plot_fdn_parameter(*dss, **filters, fs=fs):the system matrix blocks
A,B,C,Das heatmaps with a shared RdBu color scale;the delays as a bar plot whose bars are aligned with the columns of the feedback matrix
A(one bar per delay line);post_delayandpost_matrix, the two in-loop hooks, as gain-per-sample curves, as inplot_db_per_sample()– both are per delay line and both act once per round trip, so the two rows are directly comparable;post_outputas plain magnitude response in dB.
Bar and curve colors are matched per delay line and encode the delay length (Viridis, short = dark, long = bright).
- Parameters:
delays (
ArrayLike) – Delay lengths in samples, shape (N,).A (
ArrayLike) – Feedback matrix, input gains, output gains, direct gains.B (
ArrayLike) – Feedback matrix, input gains, output gains, direct gains.C (
ArrayLike) – Feedback matrix, input gains, output gains, direct gains.D (
ArrayLike) – Feedback matrix, input gains, output gains, direct gains.post_delay (
ArrayLike|None) – Per-delay-line SOS banks for the two in-loop hooks, same layout aspyFDN.td.SOSBank:(n_sections, 6, N).post_matrix (
ArrayLike|None) – Per-delay-line SOS banks for the two in-loop hooks, same layout aspyFDN.td.SOSBank:(n_sections, 6, N).post_output (
ArrayLike|None) – Output EQ as an SOS cascade in scipy format, shape(n_sections, 6)(or(6,)for one section) for a single output, or(n_sections, 6, K)to draw one magnitude curve per output channel.fs (
float|None) – Sample rate in Hz. If given, the filter responses are plotted over a logarithmic frequency axis in Hz; otherwise over rad/sample.nfft (
int) – Number of frequency points for the filter responses. Default 512.vmin (
float|None) – Shared color limits for the heatmaps. If both None, uses (-1, 1).vmax (
float|None) – Shared color limits for the heatmaps. If both None, uses (-1, 1).
- Return type:
Figure