Skip to content

Commit 023d7c6

Browse files
committed
add simulate test for LNR
1 parent 9a80bb4 commit 023d7c6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/log_normal_race_tests.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,23 @@
123123
end
124124
end
125125
end
126+
127+
@safetestset "simulate" begin
128+
using SequentialSamplingModels
129+
using Test
130+
using Random
131+
132+
Random.seed!(5841)
133+
134+
# implied threshold
135+
α = 1
136+
dist = LNR= [-2,-3], σ = 1, τ = .3)
137+
138+
time_steps, evidence = simulate(dist; Δt = 0.001)
139+
140+
@test time_steps[1] 0
141+
@test length(time_steps) == size(evidence, 1)
142+
@test size(evidence, 2) == 2
143+
@test maximum(evidence[end, :]) α atol = 0.005
144+
end
126145
end

0 commit comments

Comments
 (0)