Documentation sections
Digital Filter Order Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug digital-filter-order. Calculate minimum filter order for Butterworth, Chebyshev, and elliptic designs. Determine order from passband ripple and stopband attenuation specs. Free, instant results.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| passbandFreqnumber | Hz | at least 1 | 1000 | Frequency where passband ripple specification is met |
| stopbandFreqnumber | Hz | at least 1 | 2000 | Frequency where stopband attenuation must be achieved |
| passbandRipplenumber | dB | at least 0.01 | 3 | Maximum allowed ripple in the passband (typically 0.1–3 dB) |
| stopbandAttenuationnumber | dB | at least 1 | 40 | Minimum attenuation required in the stopband |
| toneFreqnumber | Hz | at least 0.001 | 1000 | A tone the filter must pass while it rejects the tone's harmonics: a transmitter's carrier, the mains fundamental, a test tone |
| maxHarmonicnumber | none | 1 … 50 | 5 | The highest harmonic of the tone the frequency plan follows |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| butterworthOrderheadline | none | Butterworth Order |
| chebyshevOrder | none | Chebyshev Order |
| ellipticOrder | none | Elliptic Order |
| transitionRatio | none | Transition Ratio |
| harmonicsInPassband | none | Harmonics of the tone, up to the highest, at or below the passband edge: the filter passes them with the tone |
| harmonicsInTransition | none | Harmonics between the passband and stopband edges: attenuated, but by less than the stopband attenuation is guaranteed |
| nearestHarmonic | Hz | The lowest harmonic of the tone above the passband edge, up to the highest harmonic; none if every one is in the passband |
| butterworthAttenuation | dB | What the Butterworth of the order above does to that harmonic: 10·log10(1 + ε_p²·(f/f_p)^2n) |
| chebyshevAttenuation | dB | What the Chebyshev of the order above does to that harmonic: 10·log10(1 + ε_p²·cosh²(n·acosh(f/f_p))) |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.