Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed Jul 29, 2021
1 parent 776c593 commit 6008e0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ end
d = [10 1 6.0 1.0; 200 3 4.0 1.0; 100 2 3.0 1.0]

results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "vanillaDynamic", out = ["wls", "display"])
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]

results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "efficientDynamic")
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]

results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "kahanDynamic")
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]

results, system = gbp("dataDynamic33_14.xlsx"; max = 1000, algorithm = "kahanDynamic", out = ["wls", "error"])
@test maximum(abs.(results.gbp.rmse - results.wls.rmse)) < 1e-8
Expand Down

0 comments on commit 6008e0f

Please sign in to comment.