pub fn freqz<T: IsAnalytic>(
b: &[T],
a: Option<&[T]>,
wor_n: Option<FreqzWorN>,
whole: Option<bool>,
fs: Option<f64>,
include_nyquist: Option<bool>,
) -> Result<FreqzResult, ErrorsJSL>Expand description
Compute the frequency response of a digital filter.
Arguments:
b: numerator coefficientsa: optional denominator coefficients; defaults to[1]when omittedwor_n: optional frequency-grid specification; defaults to 512 pointswhole: optional; defaults tofalse. Whentrueandwor_nis an integer, evaluate the whole unit circle and return the axis in ascending order on[-fs/2, fs/2)fs: sampling frequency used for the returned axis units; defaults to2*pi, matching SciPy’s radians/sample conventioninclude_nyquist: optional; defaults totrue. Only used for non-wholeinteger grids
Notes:
- If
wor_nisFreqzWorN::Frequencies, the explicit frequencies are used as-is andwholeis ignored, matching SciPy’s behavior. - This implementation does not include SciPy’s plotting callback.