Skip to content

Commit

Permalink
add simulate test for LNR
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdfish committed Dec 18, 2024
1 parent 9a80bb4 commit 023d7c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/log_normal_race_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,23 @@
end
end
end

@safetestset "simulate" begin
using SequentialSamplingModels
using Test
using Random

Random.seed!(5841)

# implied threshold
α = 1
dist = LNR= [-2,-3], σ = 1, τ = .3)

time_steps, evidence = simulate(dist; Δt = 0.001)

@test time_steps[1] 0
@test length(time_steps) == size(evidence, 1)
@test size(evidence, 2) == 2
@test maximum(evidence[end, :]) α atol = 0.005
end
end

0 comments on commit 023d7c6

Please sign in to comment.