pyFDN.flamo_freq_response#
- pyFDN.flamo_freq_response(model, fs=48000, identity=False)[source]#
Return a FLAMO model’s (complex) frequency response as a NumPy array.
The NumPy-facing counterpart of FLAMO’s
model.get_freq_response()and the frequency-domain sibling offlamo_time_response(). It detaches the returned tensor from any autograd graph, transfers it to CPU memory, and preserves its shape and (complex) dtype. Takenp.abs(...)for the magnitude response,np.angle(...)for the phase.get_freq_responseevaluates overnfftDFT bins by temporarily swapping the model’s input/output layers to FFT and restoring them before returning, so this is side-effect-free regardless of the model’s current output layer.- Parameters:
- Returns:
Complex frequency response with the same shape and numeric dtype as FLAMO’s tensor.
- Return type:
np.ndarray