From 93216c2d95835b245cb6c425296a040c8aeddd0a Mon Sep 17 00:00:00 2001
From: Fredrik Bagge Carlson <fredrikb@control.lth.se>
Date: Sun, 6 Sep 2015 17:29:49 +0200
Subject: [PATCH] update ar arx and rename test-> runtests

---
 src/armax.jl                   | 8 ++++----
 test/{tests.jl => runtests.jl} | 2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)
 rename test/{tests.jl => runtests.jl} (97%)

diff --git a/src/armax.jl b/src/armax.jl
index a5f921c..7dc109f 100644
--- a/src/armax.jl
+++ b/src/armax.jl
@@ -1,4 +1,4 @@
-"""`ar(y, na; λ = 0, doplot=false)`"""
+"""`ar(y, na; λ = 0)`"""
 function ar(y::Vector{Float64}, na; λ = 0)
     y_train, A = getARregressor(y,na)
     n_points = size(A,1)
@@ -13,10 +13,10 @@ function ar(y::Vector{Float64}, na; λ = 0)
     result = FitResult(y_train,prediction,na, λ>0?(:LS_reg) :(:LS),λ)
     return model, result
 end
-ar(iddata::IdData, na; λ = 0, doplot=false) = ar(iddata.y, na; λ = 0)
+ar(iddata::IdData, na; λ = 0) = ar(iddata.y, na; λ = 0)
 
-"""arx(y, u, na, nb; λ = 0, doplot=false)"""
-function arx(y::Vector{Float64}, u::VecOrMat{Float64}, na, nb; λ = 0, doplot=false)
+"""arx(y, u, na, nb; λ = 0)"""
+function arx(y::Vector{Float64}, u::VecOrMat{Float64}, na, nb; λ = 0)
     y_train, A = getARXregressor(y,u, na, nb)
     n_points = size(A,1)
     if λ == 0
diff --git a/test/tests.jl b/test/runtests.jl
similarity index 97%
rename from test/tests.jl
rename to test/runtests.jl
index addb00c..ab24f77 100644
--- a/test/tests.jl
+++ b/test/runtests.jl
@@ -88,3 +88,5 @@ function run_tests()
 end
 
 end
+import SystemIdentificationTests
+SystemIdentificationTests.run_tests()
-- 
GitLab