lowpass_filter¶
Synthesize and scale an ideal passive lowpass circuit from a SciPy prototype.
Signature¶
lowpass_filter(filter_type: Literal['butterworth', 'chebyshev', 'elliptic'], order: int, cutoff_hz: float, *, ripple_db: float | None=None, stopband_attenuation_db: float | None=None, source_impedance_ohm: float=50.0, load_impedance_ohm: float | None=None, first_element: Literal['series', 'shunt']='series') -> LowpassFilter
Parameters¶
| Name | Type | Required | Default |
|---|---|---|---|
filter_type |
Literal['butterworth', 'chebyshev', 'elliptic'] |
yes | - |
order |
int |
yes | - |
cutoff_hz |
float |
yes | - |
ripple_db |
float \| None |
no | None |
stopband_attenuation_db |
float \| None |
no | None |
source_impedance_ohm |
float |
no | 50.0 |
load_impedance_ohm |
float \| None |
no | None |
first_element |
Literal['series', 'shunt'] |
no | 'series' |
Fields¶
| Field |
|---|
filter_type |
order |
cutoff_hz |
ripple_db |
stopband_attenuation_db |
source_impedance_ohm |
load_impedance_ohm |
first_element |
Return shape¶
LowpassFilter
Permission¶
This is a local SDK helper. It does not call the CloudSprite HTTP API.
Usage¶
cs.lowpass_filter(filter_type, order, cutoff_hz)