Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/m/o/modred-1.0.2/tests/testutil.py   modred(Download)
                    Ar, Br, Cr = util.balanced_truncation(A, B, C)
                    num_time_steps = 10
                    y = util.impulse(A, B, C, num_time_steps=num_time_steps)
                    yr = util.impulse(Ar, Br, Cr, num_time_steps=num_time_steps)
                    N.testing.assert_allclose(yr, y, rtol=1e-5)
                    A, B, C = util.drss(num_states, num_inputs, num_outputs)
                    # Check that can give time_step
                    outputs = util.impulse(A, B, C)
                    num_time_steps = len(outputs)
                    outputs_true = N.zeros((num_time_steps, num_outputs, num_inputs))
 
                    # Check can give num_time_steps as an argument
                    outputs = util.impulse(A, B, C, num_time_steps=num_time_steps)
                    N.testing.assert_allclose(outputs, outputs_true)
 

src/m/o/modred-1.0.2/tests/testera.py   modred(Download)
                    time_steps = make_time_steps(num_time_steps, 
                        sample_interval)
                    Markovs = util.impulse(A, B, C, time_steps[-1]+1)
                    Markovs = Markovs[time_steps]
 
                        num_outputs)
                    myERA = era.ERA(verbosity=0)
                    Markovs = util.impulse(A, B, C, time_steps[-1]+1)
                    Markovs = Markovs[time_steps]