Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Dec 2, 2017
1 parent 6d41c87 commit c20eb3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/model_analysis/infogap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Mads.mkdir("infogap_results")
info("Information Gap analysis")

h = [0.001, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1]
lmin = Array{Any}(4)
lmax = Array{Any}(4)
lmin = Vector{Any}(4)
lmax = Vector{Any}(4)
colors = ["blue", "red", "green", "orange"]
models = ["y = a * t + c", "y = a * t^(1.1) + b * t + c", "y = a * t^n + b * t + c", "y = a * exp(t * n) + b * t + c"]
models = ["y = a * t + c", "y = a * t^(1.1) + b * t + c", "y = a * t^n + b * t + c", "y = a * exp(t * n) + b * t + c"]
for i = 1:4
min, max = Mads.infogap_jump_polinomial(model=i, plot=true, horizons=h, retries=10, maxiter=1000, verbosity=0, seed=2015)
lmin[i] = Gadfly.layer(x=min, y=h, Gadfly.Geom.line, Gadfly.Theme(default_color=parse(Colors.Colorant, colors[i])))
Expand Down

0 comments on commit c20eb3a

Please sign in to comment.