signal.tests.test_filter_design

Module Contents

Functions

mpmath_check(min_ver)
dB(x)
test_sos_consistency()
mpmath_check(min_ver)
class TestCplxPair
test_trivial_input()
test_output_order()
test_real_integer_input()
test_tolerances()
test_unmatched_conjugates()
class TestCplxReal
test_trivial_input()
test_output_order()
test_unmatched_conjugates()
test_real_integer_input()
class TestTf2zpk
test_simple()
test_bad_filter()
class TestZpk2Tf
test_identity()

Test the identity transfer function.

class TestSos2Zpk
test_basic()
class TestSos2Tf
test_basic()
class TestTf2Sos
test_basic()
class TestZpk2Sos
test_basic()
class TestFreqs
test_basic()
test_output()
test_freq_range()
test_plot()
class TestFreqs_zpk
test_basic()
test_output()
test_freq_range()
test_vs_freqs()
class TestFreqz
test_ticket1441()

Regression test for ticket 1441.

test_basic()
test_basic_whole()
test_plot()
test_fft_wrapping()
test_broadcasting1()
test_broadcasting2()
test_broadcasting3()
test_broadcasting4()
class TestSOSFreqz
test_sosfreqz_basic()
test_sosfrez_design()
test_sosfreqz_design_ellip()
test_sos_freqz_against_mp()
class TestFreqz_zpk
test_ticket1441()

Regression test for ticket 1441.

test_basic()
test_basic_whole()
test_vs_freqz()
class TestNormalize
test_allclose()

Test for false positive on allclose in normalize() in filter_design.py

test_errors()

Test the error cases.

class TestLp2lp
test_basic()
class TestLp2hp
test_basic()
class TestLp2bp
test_basic()
class TestLp2bs
test_basic()
class TestBilinear
test_basic()
class TestPrototypeType
test_output_type()
dB(x)
class TestButtord
test_lowpass()
test_highpass()
test_bandpass()
test_bandstop()
test_analog()
class TestCheb1ord
test_lowpass()
test_highpass()
test_bandpass()
test_bandstop()
test_analog()
class TestCheb2ord
test_lowpass()
test_highpass()
test_bandpass()
test_bandstop()
test_analog()
class TestEllipord
test_lowpass()
test_highpass()
test_bandpass()
test_bandstop()
test_analog()
class TestBessel
test_degenerate()
test_high_order()
test_refs()
test_hardcoded()
test_norm_phase()
test_norm_mag()
test_norm_delay()
test_norm_factor()
test_bessel_poly()
test_bessel_zeros()
test_invalid()
class TestButter
test_degenerate()
test_basic()
test_highpass()
test_bandpass()
test_bandstop()
test_ba_output()
class TestCheby1
test_degenerate()
test_basic()
test_highpass()
test_bandpass()
test_bandstop()
test_ba_output()
class TestCheby2
test_degenerate()
test_basic()
test_highpass()
test_bandpass()
test_bandstop()
test_ba_output()
class TestEllip
test_degenerate()
test_basic()
test_highpass()
test_bandpass()
test_bandstop()
test_ba_output()
test_sos_consistency()
class TestIIRNotch
test_ba_output()
test_frequency_response()
test_errors()
class TestIIRPeak
test_ba_output()
test_frequency_response()
test_errors()
class TestIIRFilter
test_symmetry()
test_int_inputs()
test_invalid_wn_size()
test_invalid_wn_range()
class TestGroupDelay
test_identity_filter()
test_fir()
test_iir()
test_singular()