signal.tests.test_ltisys

Module Contents

Functions

_assert_poles_close(P1,P2,rtol=1e-08,atol=1e-08) Check each pole in P1 is close to a pole in P2 with a 1e-8
_assert_poles_close(P1, P2, rtol=1e-08, atol=1e-08)

Check each pole in P1 is close to a pole in P2 with a 1e-8 relative tolerance or 1e-8 absolute tolerance (useful for zero poles). These tolerances are very strict but the systems tested are known to accept these poles so we should not be far from what is requested.

class TestPlacePoles
_check(A, B, P, **kwargs)

Perform the most common tests on the poles computed by place_poles and return the Bunch object for further specific tests

test_real()
test_complex()
test_tricky_B()
test_errors()
class TestSS2TF
check_matrix_shapes(p, q, r)
test_shapes()
test_basic()
test_zero_order_round_trip()
test_simo_round_trip()
test_multioutput()
class TestLsim
lti_nowarn(*args)
test_first_order()
test_integrator()
test_double_integrator()
test_jordan_block()
test_miso()
test_nonzero_initial_time()
class Test_lsim2
test_01()
test_02()
test_03()
test_04()
test_05()
test_06()
class _TestImpulseFuncs
test_01()
test_02()
test_03()
test_04()
test_05()
test_06()
test_array_like()
test_array_like2()
class TestImpulse2
setup_method()
class TestImpulse
setup_method()
class _TestStepFuncs
test_01()
test_02()
test_03()
test_04()
test_05()
test_06()
test_array_like()
class TestStep2
setup_method()
test_05()
class TestStep
setup_method()
test_complex_input()
class TestLti
test_lti_instantiation()
class TestStateSpace
test_initialization()
test_conversion()
test_properties()
class TestTransferFunction
test_initialization()
test_conversion()
test_properties()
class TestZerosPolesGain
test_initialization()
test_conversion()
class Test_abcd_normalize
setup_method()
test_no_matrix_fails()
test_A_nosquare_fails()
test_AB_mismatch_fails()
test_AC_mismatch_fails()
test_CD_mismatch_fails()
test_BD_mismatch_fails()
test_normalized_matrices_unchanged()
test_shapes()
test_zero_dimension_is_not_none1()
test_zero_dimension_is_not_none2()
test_missing_A()
test_missing_B()
test_missing_C()
test_missing_D()
test_missing_AB()
test_missing_AC()
test_missing_AD()
test_missing_BC()
test_missing_ABC_fails()
test_missing_BD_fails()
test_missing_CD_fails()
class Test_bode
test_01()
test_02()
test_03()
test_04()
test_05()
test_06()
test_07()
test_08()
test_from_state_space()
class Test_freqresp
test_output_manual()
test_output()
test_freq_range()
test_pole_zero()
test_from_state_space()
test_from_zpk()