Skip to content
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.

Inputs of digital-filter-order
NameUnitRangeDefaultDescription
passbandFreqnumberHzat least 11000Frequency where passband ripple specification is met
stopbandFreqnumberHzat least 12000Frequency where stopband attenuation must be achieved
passbandRipplenumberdBat least 0.013Maximum allowed ripple in the passband (typically 0.1–3 dB)
stopbandAttenuationnumberdBat least 140Minimum attenuation required in the stopband
toneFreqnumberHzat least 0.0011000A tone the filter must pass while it rejects the tone's harmonics: a transmitter's carrier, the mains fundamental, a test tone
maxHarmonicnumbernone1 … 505The highest harmonic of the tone the frequency plan follows

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of digital-filter-order
FieldUnitDescription
butterworthOrderheadlinenoneButterworth Order
chebyshevOrdernoneChebyshev Order
ellipticOrdernoneElliptic Order
transitionRationoneTransition Ratio
harmonicsInPassbandnoneHarmonics of the tone, up to the highest, at or below the passband edge: the filter passes them with the tone
harmonicsInTransitionnoneHarmonics between the passband and stopband edges: attenuated, but by less than the stopband attenuation is guaranteed
nearestHarmonicHzThe lowest harmonic of the tone above the passband edge, up to the highest harmonic; none if every one is in the passband
butterworthAttenuationdBWhat the Butterworth of the order above does to that harmonic: 10·log10(1 + ε_p²·(f/f_p)^2n)
chebyshevAttenuationdBWhat 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.