diff --git a/Project.toml b/Project.toml index 641cd502..d3138b67 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SequentialSamplingModels" uuid = "0e71a2a6-2b30-4447-8742-d083a85e82d1" authors = ["itsdfish"] -version = "0.5.2" +version = "0.5.3" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" diff --git a/src/RDM.jl b/src/RDM.jl index 28c5d4e0..c9a99f27 100644 --- a/src/RDM.jl +++ b/src/RDM.jl @@ -200,7 +200,7 @@ function simulate(model::RDM; Δt=.001) end function increment!(model::RDM, x, ϵ, ν, Δt) - ϵ .= rand(Normal(0.0, 0.10), length(ν)) + ϵ .= rand(Normal(0.0, 1.0), length(ν)) x .+= ν * Δt + ϵ * √(Δt) return nothing end \ No newline at end of file diff --git a/src/Wald.jl b/src/Wald.jl index 202c7eb2..9d658a91 100644 --- a/src/Wald.jl +++ b/src/Wald.jl @@ -95,7 +95,7 @@ function simulate(model::Wald; Δt=.001) time_steps = [t] while x .< α t += Δt - x += ν * Δt + rand(Normal(0.0, 0.10)) * √(Δt) + x += ν * Δt + rand(Normal(0.0, 1.0)) * √(Δt) push!(evidence, x) push!(time_steps, t) end diff --git a/src/wald_mixture.jl b/src/wald_mixture.jl index cdf3ba3d..261e1503 100644 --- a/src/wald_mixture.jl +++ b/src/wald_mixture.jl @@ -96,7 +96,7 @@ function simulate(model::WaldMixture; Δt=.001) ν′ = rand(truncated(Normal(ν, η), 0, Inf)) while x .< α t += Δt - x += ν′ * Δt + rand(Normal(0.0, 0.10)) * √(Δt) + x += ν′ * Δt + rand(Normal(0.0, 1.0)) * √(Δt) push!(evidence, x) push!(time_steps, t) end diff --git a/test/wald_mixture_tests.jl b/test/wald_mixture_tests.jl index 28aaf688..e221814a 100644 --- a/test/wald_mixture_tests.jl +++ b/test/wald_mixture_tests.jl @@ -45,6 +45,6 @@ @test time_steps[1] ≈ 0 @test length(time_steps) == length(evidence) - @test evidence[end] ≈ α atol = .005 + @test evidence[end] ≈ α atol = .02 end end \ No newline at end of file diff --git a/test/wald_tests.jl b/test/wald_tests.jl index 0547859f..b7c80176 100644 --- a/test/wald_tests.jl +++ b/test/wald_tests.jl @@ -60,6 +60,6 @@ @test time_steps[1] ≈ 0 @test length(time_steps) == length(evidence) - @test evidence[end] ≈ α atol = .005 + @test evidence[end] ≈ α atol = .02 end end \ No newline at end of file