Commit af0cb1b5 authored by Fredrik Bagge Carlson's avatar Fredrik Bagge Carlson
Browse files

test passing

parent 6481930b
Pipeline #662 failed with stage
in 4 minutes and 40 seconds
using LabProcesses, ControlSystems
using Base.Test
using LabProcesses, ControlSystems, DSP
using Test
# Reference generators
r = PRBSGenerator(Int(4))
......@@ -8,14 +8,14 @@ seq = [r() for i = 1:10]
foreach(r,1:10_000)
function test_sysfilter()
N = 10
u = randn(N)
b = [1, 1]
a = [1, 0.1, 1]
sys = ss(tf(b,a,1))
N = 10
u = randn(N)
b = [1, 1]
a = [1, 0.1, 1]
sys = ss(tf(b,a,1))
state = init_sysfilter(sys)
yf = filt(b,a,u)
yff = similar(yf)
yf = filt(b,a,u)
yff = similar(yf)
for i in eachindex(u)
yff[i] = sysfilter!(state, sys, u[i])[1]
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment