Exemplo n.º 1
0
def test_invalid_balred():
    with pytest.raises(ValueError):
        balred(Lowpass(0.1), 0)
Exemplo n.º 2
0
def test_invalid_balred():
    with pytest.raises(ValueError):
        balred(Lowpass(0.1), 0)
Exemplo n.º 3
0
 def check(order, within, tol, method='del'):
     redsys = balred(sys, order, method=method)
     assert redsys.order_den <= order
     actual = redsys.filt(u, dt)
     assert abs(rmse(expected, actual) - within) < tol
Exemplo n.º 4
0
 def check(order, within, tol, method='del'):
     redsys = balred(sys, order, method=method)
     assert redsys.order_den <= order
     actual = apply_filter(redsys, dt, u)
     assert abs(rmse(expected, actual) - within) < tol