a
: array_like, shape (N,)
Denominator polynomial coefficients. Must be 1-D.
wo : floatDesired cutoff, as angular frequency (e.g. rad/s).
Defaults to no change.
Returns:
- b : array_like
Numerator polynomial coefficients of the transformed low-pass filter.
- a : array_like
Denominator polynomial coefficients of the transformed low-pass filter.
Notes
This is derived from the s-plane substitution
s→ω0s Array API Standard Support
lp2lp has experimental support for Python Array API Standard compatible
backends in addition to NumPy. Please consider testing these features
by setting an environment variable SCIPY_ARRAY_API=1 and providing
CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following
combinations of backend and device (or other capability) are supported.
Library | CPU | GPU |
|---|
NumPy | ✅ | n/a |
CuPy | n/a | ✅ |
PyTorch | ✅ | ✅ |
JAX | ⚠️ no JIT | ⛔ |
Dask | ⚠️ computes graph | n/a |
Examples
(
True
)
plt
.
xlabel
(
'Frequency [rad/s]'
)
plt
.
ylabel
(
'Amplitude [dB]'
)
plt
.
legend
()