Skip to content

Commit

Permalink
update unit test for censored discrete PMFs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBrand1 committed Feb 12, 2024
1 parent 13c7de7 commit 147e97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EpiAware/test/test_utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ end
end

# Test case 4: Testing output against expected PMF basic version - single
# interval censoring
# interval censoring with left hand approx.
@testset "Test case 4" begin
dist = Exponential(1.0)
expected_pmf = [(exp(-(t - 1)) - exp(-t)) / (1 - exp(-5)) for t = 1:5]
pmf = create_discrete_pmf(dist, Val(:basic); Δd = 1.0, D = 5.0)
pmf = create_discrete_pmf(dist, Val(:single_censored); primary_approximation_point = 0., Δd = 1.0, D = 5.0)
@test pmf expected_pmf atol = 1e-15
end

Expand Down

0 comments on commit 147e97d

Please sign in to comment.