kicad2ems.dfsynth.prototype

Low-pass prototype element values (g0 ... g_{n+1}) and order estimation.

    g = gvalues('chebyshev', 5, ripple_db=0.1)  # [1, g1, ..., g5, 1]
    n = estimate_order('butterworth', 40, 2.0)
        # 40 dB at twice the normalised cut-off

The band edge of a Chebyshev prototype is the ripple level (equal-ripple band
edge); of a Butterworth prototype the -3 dB point. Every filter designed from
these keeps that convention.
kicad2ems.dfsynth.prototype.estimate_order(response, atten_db, omega_s, ripple_db=0.1, nmax=15)[source]
Smallest order with at least atten_db at normalised stop-band frequency
omega_s (> 1).
kicad2ems.dfsynth.prototype.gvalues(response, n, ripple_db=0.1)[source]
[g0, g1, ..., gn, g_{n+1}] of the order-n prototype (g0 = 1, the
source).
kicad2ems.dfsynth.prototype.lowpass_s21_db(response, n, ripple_db, omega)[source]
|S21| in dB of the prototype at normalised frequency omega (>= 0),
lossless.